Quote:
Originally Posted by theducks
This is mine
Code:
{series_index:0>5.2f|| - }{title}
What is says is all index numbers will be xx.xx (5 long includes the decimal and 2 fractional)
|
That is certainly an option! Although I'm not in love with all those extra leading and trailing zeros for 99% of my series that just do standard 1, 2, 3, etc.
I did end up giving the following a try:
Quote:
program:no_decimal = template('{series}{series_index:0>2s| #| - }{title}');has_decimal = template('{series}{series_index:0>4.1f| #| - }{title}');contains(field('series_index'),'\.',has _decimal,no_decimal)
|
(Stolen from
this post, with the addition of the "#" character.)
It gets me exactly what I was hoping for with leading zeroes for better title matching:
Quote:
The Stormlight Archive #01 - Title
The Stormlight Archive #02 - Title
The Stormlight Archive #02.5 - Title
The Stormlight Archive #03 - Title
The Stormlight Archive #03.5 - Title
The Stormlight Archive #04 - Title
The Stormlight Archive #05 - Title
|
But the Kindle still sorts it like this:
Quote:
The Stormlight Archive #01 - Title
The Stormlight Archive #02.5 - Title
The Stormlight Archive #02 - Title
The Stormlight Archive #03.5 - Title
The Stormlight Archive #03 - Title
The Stormlight Archive #04 - Title
The Stormlight Archive #05 - Title
|
As noted in that other post, I wonder if there is some overarching issue with how the Kindle device sorts that? If I had to choose between the above latest view I'm getting vs all my series being 01.00, 02.00, etc. - I think I can live with the 0X.5 entries being slightly out of place fo the very small handful of times they even exist.
But if anyone knows of a way to present the above titles as I've got them (without extraneous trailing zeros) - with proper sorting on Kindle - definitely let me know!