Custom albumsort field

I prepend the year in the albumsort field so that when looking at a band’s discography on my phone they are ordered chronology instead of alphabetically.

Currently I do this with a simple applescript once imported into iTunes but hoping to remove this step by increasing my use of beets.

Tried using both the set_fields conf setting and the --set parameter but can’t see what I’m doing wrong:

albumsort: ‘$year $album’

I have even tried the below to see an output

albumsort: ‘TEST’
grouping: 'TEST"

and still not seeing the expected results.

Have I misinterpreted the set_fields function?

Hello! That needs to go under the import: section of your config.

Also, it’s not currently possible for the values to reference other fields. For something like that, see: