How do I make sure that the output is sorted alphabetically?
Example:
Angel The Series, Buffy The Vampire Slayer, Queer Eye for the Straight Guy
becomes
Buffy The Vampire Slayer & Queer Eye for the Straight Guy & Angel The Series
Even if I change the
& to commas it still doesn't sort them alphabetically.
This is the template I'm using.
Code:
"program: tmp1 = template('{#parent_fandom}/{#meta_fandom:sublist(0,2,&)}{#fandom_secondary:sublist(0,2,\\,)}/{#story_id}/{author} - {title}'); tmp2 = template('{#parent_fandom}/{#meta_fandom:sublist(0,2,&)}{#fandom_secondary:sublist(0,2,&)}/{#story_id}/{author} - {title}'); tmp3 = template('_ Multiple Crossovers/{#story_id}/{author} - {title}'); cmp(count(field('#meta_fandom'), ','), 2, re(re(tmp1,': ',' '),',',' & '), re(re(tmp2,': ',' '),',',' & '), tmp3)"
I know tmp1 and 2 are the same but I can't figure out how to remove it and still getting the template to work.