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 05-24-2022, 07:17 AM   #1
ReaderGuy42
Enthusiast
ReaderGuy42 began at the beginning.
 
Posts: 30
Karma: 10
Join Date: Oct 2021
Device: Kindle
Issue sorting numbered titles (1, 10, 11, 2, 20, etc.)

I have numbered a series of books, as they're in a long series (The Legend of Drizzt with upwards of 40 books), so I can tell which order they go in.

However, now when I sort them by title, they appear numbered like shown in the title, e.g.
1, 10, 11, 12 . . . 2, 20, 21, 22, and so on.

I'm not sure if this is a Linux issue because I was recently having similar issues in my Linux Mint file explorer. Or is there a way to have the numbers be sorted correctly?

Thanks
ReaderGuy42 is offline   Reply With Quote
Old 05-24-2022, 07:20 AM   #2
mbovenka
Wizard
mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.
 
Posts: 2,018
Karma: 13471689
Join Date: Oct 2007
Location: Almere, The Netherlands
Device: Kobo Sage
Quote:
Originally Posted by ReaderGuy42 View Post
I'm not sure if this is a Linux issue because I was recently having similar issues in my Linux Mint file explorer. Or is there a way to have the numbers be sorted correctly?

Use 01, 02, 03...etc.
mbovenka is offline   Reply With Quote
Old 05-24-2022, 07:21 AM   #3
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: 11,742
Karma: 6997045
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Assuming you are asking about what you see in calibre, not on a reader or in a file explorer:

See Preferences / Behavior / Recognize numbers inside text when sorting.

Question: why put the series information in the title? Why not use the series column?
chaley is offline   Reply With Quote
Old 05-24-2022, 07:25 AM   #4
ReaderGuy42
Enthusiast
ReaderGuy42 began at the beginning.
 
Posts: 30
Karma: 10
Join Date: Oct 2021
Device: Kindle
Quote:
Originally Posted by chaley View Post
Assuming you are asking about what you see in calibre, not on a reader or in a file explorer:

See Preferences / Behavior / Recognize numbers inside text when sorting.

Question: why put the series information in the title? Why not use the series column?
Perfect, thank you!
a) I didn't think of using another column. I haven't been using Calibre that long/that much, so I forgot you could do that.
b) I'd like the sort order to be used on my reading device too, since I find navigating to be a little more difficult there.

But that setting worked, thank you!!
ReaderGuy42 is offline   Reply With Quote
Old 05-24-2022, 10:45 AM   #5
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 29,809
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by ReaderGuy42 View Post
I have numbered a series of books, as they're in a long series (The Legend of Drizzt with upwards of 40 books), so I can tell which order they go in.

However, now when I sort them by title, they appear numbered like shown in the title, e.g.
1, 10, 11, 12 . . . 2, 20, 21, 22, and so on.

I'm not sure if this is a Linux issue because I was recently having similar issues in my Linux Mint file explorer. Or is there a way to have the numbers be sorted correctly?

Thanks
Keyword: Alphasort

The sort is by CHARACTER weight (position in the ASCII table),
not the numeric value of digits included in the string.

The common way to make strings sort is to pad the leading places (as needed to make the highest number sort).
eg.
highest number
500 then pad 00 for single digit, 000 if 0
20 then a single 0 pad

You could use a space (ASCII%20), but those are really hard to see if you counted right, on most screens.
FWIW I commonly steer folder sorts by using a leading number:0First (or force to the end:zMakethislast) lowercase sorts AFTER uppercase
theducks is offline   Reply With Quote
Old 05-24-2022, 11:54 AM   #6
ReaderGuy42
Enthusiast
ReaderGuy42 began at the beginning.
 
Posts: 30
Karma: 10
Join Date: Oct 2021
Device: Kindle
Quote:
Originally Posted by theducks View Post
Keyword: Alphasort

The sort is by CHARACTER weight (position in the ASCII table),
not the numeric value of digits included in the string.

The common way to make strings sort is to pad the leading places (as needed to make the highest number sort).
eg.
highest number
500 then pad 00 for single digit, 000 if 0
20 then a single 0 pad

You could use a space (ASCII%20), but those are really hard to see if you counted right, on most screens.
FWIW I commonly steer folder sorts by using a leading number:0First (or force to the end:zMakethislast) lowercase sorts AFTER uppercase
Thanks That's interesting, I use the same thing with 0's and Z's too. Any idea how in this system to have a x.5 be sorted correctly after x instead of before? So like 2.5 should come AFTER 2. In my Linux Mint file explorer (nemo) this is an issue.
ReaderGuy42 is offline   Reply With Quote
Old 05-24-2022, 12:24 PM   #7
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 29,809
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by ReaderGuy42 View Post
Thanks That's interesting, I use the same thing with 0's and Z's too. Any idea how in this system to have a x.5 be sorted correctly after x instead of before? So like 2.5 should come AFTER 2. In my Linux Mint file explorer (nemo) this is an issue.
don't use the trailing period by itself
You need to maintain the most number of positions always
02
.
5

This is my Kindle METADATA Plugboard entry (I put the series name into collections as I have a K4, where that still works)
Code:
{series_index:0>5.2f|| - }{title}
02.50 - titlehere
theducks is offline   Reply With Quote
Old 05-25-2022, 07:31 AM   #8
ReaderGuy42
Enthusiast
ReaderGuy42 began at the beginning.
 
Posts: 30
Karma: 10
Join Date: Oct 2021
Device: Kindle
Quote:
Originally Posted by theducks View Post
don't use the trailing period by itself
You need to maintain the most number of positions always
02
.
5

This is my Kindle METADATA Plugboard entry (I put the series name into collections as I have a K4, where that still works)
Code:
{series_index:0>5.2f|| - }{title}
02.50 - titlehere
Thanks
ReaderGuy42 is offline   Reply With Quote
Old 05-25-2022, 08:02 AM   #9
pdurrant
The Grand Mouse 高貴的老鼠
pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.
 
pdurrant's Avatar
 
Posts: 71,510
Karma: 306214458
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Voyage
Quote:
Originally Posted by ReaderGuy42 View Post
b) I'd like the sort order to be used on my reading device too, since I find navigating to be a little more difficult there.
It's possible to set up calibre so that the name of a book transferred to your device is generated from both the book name and the series name and number

[Edit: I think it's the metadata plugboard -- already mentioned by theducks]
pdurrant is offline   Reply With Quote
Reply

Tags
question, sorting series


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Sorting between author and titles crazyfrank Library Management 2 04-05-2013 10:07 PM
Wrong sorting of titles DigiCam1 Library Management 6 01-24-2013 01:26 PM
Opus Another sorting issue OlleF Bookeen 13 11-15-2010 12:11 PM
Sorting the book titles (Feature Request) Ortep Calibre 15 11-29-2009 11:17 AM
Sorting Titles on PDA mifty12@ntlworl Reading and Management 0 09-04-2007 01:11 AM


All times are GMT -4. The time now is 06:36 PM.


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