11-23-2012, 09:47 PM | #1 |
Wizard
Posts: 1,759
Karma: 30063305
Join Date: Dec 2006
Location: Singapore
Device: Boyue
|
Series Sorting with hierarchy
Is it possible for the series with hierarchy to be sorted by the main series numbers I can achieve that in my device using send to but inside calibre the columns sort by series name instead of number first
At the moment in calibre columns it is sorting as Orb 11 Orb 12 Orb.Malloreon 6 Orb.Malloreon 7 Orb.Malloreon 8 Orb.Malloreon 9 Orb.Malloreon 10 Orb.The Belgariad 1 Orb.The Belgariad 2 Orb.The Belgariad 3 Orb.The Belgariad 4 Orb.The Belgariad 5 I would prefer it to sort as Orb.The Belgariad 1 Orb.The Belgariad 2 Orb.The Belgariad 3 Orb.The Belgariad 4 Orb.The Belgariad 5 Orb.Malloreon 6 Orb.Malloreon 7 Orb.Malloreon 8 Orb.Malloreon 9 Orb.Malloreon 10 Orb 11 Orb 12 |
11-24-2012, 04:26 AM | #2 |
Grand Sorcerer
Posts: 11,728
Karma: 6690881
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
The only way to do this is to create a composite custom column (col built from other cols) and populate it with the first item in the series hierarchy. Something like the following template:
Code:
{series:subitems(0,1)||:}{series_index:>06.2f} If you have a large library then the following template general program mode template will be faster because calibre will compile it into python Code:
program: strcat(subitems(field('series'), 0,1), ':', format_number(field('series_index'), '{0:06.2f}')) |
Advert | |
|
11-24-2012, 04:30 AM | #3 |
Treachery of images ...
Posts: 4,069
Karma: 91561091
Join Date: May 2012
Location: Australia
Device: Blackberry Playbook, Sony 650, Kobo Glo, H2O, Aura One, Forma, Libra 2
|
Dopedangel it seems that the sort order is:
first alpha Orb then number 11 Then alpha Malloreon then alpha The So change your words around to reflect the order you want it to sort. I'd be interested to hear how it works. Last edited by Lynx-lynx; 11-24-2012 at 07:25 AM. |
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Touch Series/Collections sorting | Nakaleen | Kobo Reader | 10 | 08-12-2018 10:21 AM |
Series Sorting | the2ems | Library Management | 5 | 09-10-2012 07:31 AM |
Tag browser Series hierarchy | Dopedangel | Library Management | 4 | 06-15-2012 06:20 AM |
Series sorting in plugboard | ac4lt | Devices | 6 | 01-13-2012 12:53 PM |
Sorting When Viewing Series | Lady Fitzgerald | Calibre | 3 | 04-23-2010 10:34 AM |