Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Library Management

Notices

Reply
 
Thread Tools Search this Thread
Old 11-08-2016, 01:29 AM   #1
Larsey
Junior Member
Larsey began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Nov 2016
Device: kindle voyager
Is sorting misbehaving?

I've just found that when I have a series of books where the title contains a number, the sorting doesn't work right.

For example, I get

Awesome Book, Volume 1
Awesome Book, Volume 10
Awesome Book, Volume 11
Awesome Book, Volume 12
Awesome Book, Volume 2
Awesome Book, Volume 3
Awesome Book, Volume 4
...

I don't see any tweak that would fix this sorting. Is there something I'm missing or a plug-in that adjusts the sorting behavior?

Or is this a known bug?

If it's intentional, I'm curious whether the sorting algorithm can be overridden in a plug-in -- I could whip one up.

Thanks
Larsey is offline   Reply With Quote
Old 11-08-2016, 01:59 AM   #2
itimpi
Wizard
itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.
 
Posts: 4,553
Karma: 950151
Join Date: Nov 2008
Device: Sony PRS-950, iphone/ipad (Marvin/iBooks/QuickReader)
Quote:
Originally Posted by Larsey View Post
I've just found that when I have a series of books where the title contains a number, the sorting doesn't work right.

For example, I get

Awesome Book, Volume 1
Awesome Book, Volume 10
Awesome Book, Volume 11
Awesome Book, Volume 12
Awesome Book, Volume 2
Awesome Book, Volume 3
Awesome Book, Volume 4
...

I don't see any tweak that would fix this sorting. Is there something I'm missing or a plug-in that adjusts the sorting behavior?

Or is this a known bug?

If it's intentional, I'm curious whether the sorting algorithm can be overridden in a plug-in -- I could whip one up.

Thanks
That will be because the sorting is strictly alphabetical. You need to include leading zeroes in the numbers to get it to sort how you want.
itimpi is offline   Reply With Quote
Advert
Old 11-08-2016, 02:13 AM   #3
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: 45,343
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Preferences->Tweaks->Recognize numbers inside text when sorting
kovidgoyal is online now   Reply With Quote
Old 11-08-2016, 12:09 PM   #4
Larsey
Junior Member
Larsey began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Nov 2016
Device: kindle voyager
There it is! Yeah, thanks, Kovid -- you're the best
Larsey is offline   Reply With Quote
Reply

Tags
library sorting algorithm


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Preview pane is misbehaving Notjohn Sigil 8 10-02-2015 05:59 AM
pdftoppm misbehaving, can't import books MelBr Calibre 15 08-19-2015 09:12 AM
Sigil book view misbehaving? mariopanz Sigil 3 03-06-2013 05:34 AM
Neat solution for a misbehaving reader screen Tunney enTourage eDGe 8 12-02-2011 03:07 AM
Misbehaving Page Bar scotty1024 iRex 20 12-12-2007 08:10 AM


All times are GMT -4. The time now is 11:37 PM.


MobileRead.com is a privately owned, operated and funded community.