View Single Post
Old 12-16-2024, 10:56 AM   #6
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,447
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by ownedbycats View Post
It's not a huge issue as I'll probably be leaving the column hidden in tag browser, but is there a workaround the non-numerical sorting?

Attachment 212520
There are two numbers. How do you expect it to sort?

Some thoughts:
  • Turn on Preferences / Behavior / Recognize numbers insize text when sorting. This seems to sort on the first number, but it might take the second into consideration when the first are the same.
  • Prefix the output with a "size" string such as "small, medium, large" or "Size 0" through "Size 9".
  • Zero-pad the numbers to enough places, probably 4.

EDIT: Using this in the template zero-fills:
Code:
	if width and height:
		return f'{width:04d} by {height:04d}'
EDIT 2: The option doesn't seem to affect the tag browser.

Last edited by chaley; 12-16-2024 at 11:04 AM.
chaley is offline   Reply With Quote