View Single Post
Old 02-12-2024, 03:38 AM   #9
zimpt
Junior Member
zimpt began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Feb 2024
Device: Kindle Paperwhite 4th Iteration (Gen. 10)
Quote:
Originally Posted by chaley View Post
@BetterRed's suggestion is best, but you can get what you want by checking
the option Preferences / Behavior / Recognize numbers inside text when sorting.
Attachment 206323

With the option unchecked:
Attachment 206322

With the option checked:
Attachment 206324

You can also use a bulk search & replace with source "template" to change the titles to have a fixed number of leading zeros This is complicated and error prone so I don't recommend it. The template would be something like this, assuming that the number always appears at the end and that it can be floating point:
Code:
program:
	text = re($title, '^(.*?)[\d\.]*$', '\1');
	digits = re($title, '.*?((\d+(?:\.\d*)?|\.\d+)).*?', '\1');
	digits = format_number(digits, '08.2f');
	title = text & digits
fixed it thanks
zimpt is offline   Reply With Quote