View Single Post
Old 04-10-2012, 11:14 AM   #2
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,448
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
The series_sort function can be used only in template program mode or general program mode. You are using single function mode.

In TPM you would use
Code:
{:'series_sort()'}{series_index:0>2s| [|]: }{title_sort}
In GPM you would use:
Code:
program: strcat(series_sort(), finish_formatting(field('series_index'), '0>2s', ' [', ']: '), field('title'))
or possibly
Code:
program: strcat(series_sort(), finish_formatting(field('series_index'), '05.2f', ' [', ']: '), field('title'))
which better handles fractional series indices.
chaley is offline   Reply With Quote