View Single Post
Old 06-04-2026, 10:52 AM   #11
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 46,304
Karma: 29630860
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
@whiteowl I have no idea why you are being so argumentative. If you want it to sort numerically, it needs to be a number. pos_frac gives you a number. percent does not. If you prefer a percentage number to look at such as 23 instead of 0.23 then chain two functions to remove the trailing percentage from the result of reading_progress(). That way you get both a nice percentage number to look at and it will sort by that number as well. In any case, my patience is exhausted, good luck.

@thiago.eec: All template functions operate on and return strings. Numerical sorting simply re-interpretes those strings as numbers.
kovidgoyal is offline   Reply With Quote