added the groupings for artist and album, changed sorting function signature