View Single Post
Old 03-18-2019, 05:09 AM   #1
Tanjamuse
Wizard
Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!
 
Posts: 1,327
Karma: 5306
Join Date: Jan 2014
Device: none
Trouble Saving to Disk Alphabetically

Hi.

When I save Books to disk with a comma separated tag column the output isn't sorted alphabetically when there's more than one tag in the column.

What's in the column in Calibre:

Angel The Series, Buffy The Vampire Slayer, Firefly

What it becomes in the folder on my computer:

Buffy The Vampire Slayer, Firefly, Angel The Series

This is my template for saving to disk. I know the tmp1 and tmp2 is the same one but I don't know how to remove one of the them and still keep the rest of it intact.

Code:
program: tmp1 = template('{#parent_fandom}/{#meta_fandom}/{#story_id}/{author} - {title}'); tmp2 = template('{#parent_fandom}/{#meta_fandom}/{#story_id}/{author} - {title}'); tmp3 = template('_ Multiple Crossovers/{#story_id}/{author} - {title}'); cmp(count(field('#meta_fandom'), ','), 3, re(re(tmp1,': ',' '),',',', '), re(re(tmp2,': ',' '),',',', '), tmp3)
I hope someone can help me, or at least clarify if it's a bug or normal in Calibre?

Thanks so much in advance.

Tanjamuse

Last edited by Tanjamuse; 03-18-2019 at 05:13 AM.
Tanjamuse is offline   Reply With Quote