This script will examine each track in the entire iTunes library--or a selection of tracks--for items purchased from the iTunes Store (audio, video, and books) and then sort them by either the purchaser's name or account ID into discrete playlists, eg: "Purchased by Tom Ryan" or "Purchased by email@example.com".
Purchaser information is gleaned by examining the track's local file (purchase info for iTunes Match tracks in the cloud is inaccessible and cloud tracks will be ignored), which, depending on file location and access speed, may take as long a second per track. Just sayin'.
OS X 10.6 or later only. Previous universal version available at the link below in the "Info" section.
Sort using the name or account ID of the Purchaser.