View Single Post
Old 08-11-2014, 02:49 AM   #3
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,476
Karma: 8025702
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
@kaufman: as eschwartz said, nice.

I assume that you are using the new custom column in a user-defined sort (Authors, #yourCol). You could do it all in the custom column, freeing a user-defined sort and also giving you the possibility to invert the sort. Using eschwartz's modification, the template would be:
Code:
program:

strcat(
	field('author_sort'),
	':::',
	ifempty(
		strcat(
			field('series'),
			finish_formatting(
				field('series_index'),
				"5.2f",
				" (",
				")"
			)
		),
		field('title')
	)
)
Also, you might want to use the series_sort() function instead of field('series'). Depends on whether you want to sort on "The Lost Fleet" or "Lost Fleet, The".

Last edited by chaley; 08-11-2014 at 03:49 AM. Reason: fix template to use author_sort instead of authors and to mention series_sort()
chaley is offline   Reply With Quote