View Single Post
Old 06-02-2017, 12:27 AM   #11
stuckinoh08
Junior Member
stuckinoh08 began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Aug 2012
Device: Kindle Paperwhite
So I am looking to do what the OP and sort series correctly with decimals. Currently I am using the following plugboard:

Code:
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)
Now, for all intents and purposes this works, except for one small caviat... When sorting a series of decimals, it sorts the whole number last. What I mean by this is this:

Series_Name 01 - Title
Series_Name 02.1 - Title
Series_Name 02.2 - Title
Series_Name 02 - Title
Series_Name 03 - Title

Now this isn't a huge issue, at least they a grouped together, and not 10 books apart, but it is a minor annoyance. I thought I would give Post #7's solution a try and unfortunately, it still sorts in the same manor.

Any advice?
stuckinoh08 is offline   Reply With Quote