Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 02-21-2026, 08:05 AM   #1
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 82,149
Karma: 150871427
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Bug in author sort

In calibre 9.3, I found an author sort bug.

The OPF code is
Code:
<dc:creator opf:file-as="Dana Stabenow" opf:role="aut">Dana Stabenow</dc:creator>
It picks up Dana Stabenow as the author sort instead of Stabenow, Dana.

Click image for larger version

Name:	author sort.jpg
Views:	36
Size:	281.2 KB
ID:	221184

Last edited by JSWolf; 02-21-2026 at 08:09 AM.
JSWolf is offline   Reply With Quote
Old 02-21-2026, 11:34 AM   #2
un_pogaz
Chalut o/
un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.
 
un_pogaz's Avatar
 
Posts: 652
Karma: 719376
Join Date: Dec 2017
Device: Kobo
Always as been.
Calibre has always imported "author sort" stored in the OPF as it, even if is incorect.

Use Quality check to found incorect value.

Last edited by un_pogaz; 02-21-2026 at 12:14 PM.
un_pogaz is offline   Reply With Quote
Old 02-21-2026, 11:37 AM   #3
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 82,149
Karma: 150871427
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by un_pogaz View Post
Always as been.
Calibre has always imported author sort sorted in the OPF as it, even if is incorect.
It's the first time I've noticed this issue. The author name and author sort should not be the same. It should be that if the author sort and author name is the same without a comma then it gets sorted in author sort and if it has a comma, it should get sorted in author name.
JSWolf is offline   Reply With Quote
Old 02-21-2026, 11:52 AM   #4
un_pogaz
Chalut o/
un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.
 
un_pogaz's Avatar
 
Posts: 652
Karma: 719376
Join Date: Dec 2017
Device: Kobo
Quote:
Originally Posted by JSWolf View Post
It's the first time I've noticed this issue. The author name and author sort should not be the same. It should be that if the author sort and author name is the same without a comma then it gets sorted in author sort and if it has a comma, it should get sorted in author name.
Damn it, JSWolf read and understand what I write:
Calibre has always import "author sort" stored in the OPF as it, even if is incorect.
this mean:
If the epub already contain a stored value "author sort", Calibre will use it, even if it incorect. You need to manualy check if the "author sort" value of imported book is the good one or not.

You imported book has an incorrect value, Calibre read and use it. If you never check the "author sort" of your book, their is probably plenty of incorect values in your library.

Is not a bug or a issue, is the excepted behavior. Hence the usefulness of the Quality check action.

Last edited by un_pogaz; 02-21-2026 at 12:14 PM.
un_pogaz is offline   Reply With Quote
Old 02-21-2026, 12:28 PM   #5
gbm
Wizard
gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.
 
Posts: 2,234
Karma: 8888888
Join Date: Jun 2010
Device: Kobo Clara HD,Hisence Sero 7 Pro RIP, Nook STR, jetbook lite
Sign. You do not check your Author sort in Edit metadata?
https://manual.calibre-ebook.com/met...book-at-a-time

Quote:
You can click the button next to author sort to have calibre automatically fill it in using the sort values stored with each author. Use the Manage authors dialog to see and change the authors’ sort values. This dialog can be opened by clicking and holding the button next to author sort.
berne
Quote:
Originally Posted by JSWolf View Post
It's the first time I've noticed this issue. The author name and author sort should not be the same. It should be that if the author sort and author name is the same without a comma then it gets sorted in author sort and if it has a comma, it should get sorted in author name.
gbm is offline   Reply With Quote
Old 02-21-2026, 05:24 PM   #6
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: 31,533
Karma: 62543878
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 un_pogaz View Post
Always as been.
Calibre has always imported "author sort" stored in the OPF as it, even if is incorect.

Use Quality check to found incorect value.
Yep. Calibre only calculates upon import if there was no value. Been that way since Guttenberg started printing
theducks is offline   Reply With Quote
Old 02-21-2026, 05:52 PM   #7
Comfy.n
want to learn what I want
Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.
 
Posts: 1,952
Karma: 7955879
Join Date: Sep 2020
Device: none
Out of curiosity I made a search in my largest library and got these results, where fileas-search is a tag applied to all EPUBs containing the file-as OPF metadata property, and fileas-search-comma is a tag applied to all in which such property contains a comma:

(tags:"=fileas-search" not tags:"=fileas-search-comma") l:en not a:~^\(\\p{L}\\p{M}*\)+$
3050 items

(tags:"=fileas-search" l:en) not a:~^\(\\p{L}\\p{M}*\)+$
10373 items


So, that's definitely not unusual for publishers to use the FN LN pattern in file-as metadata. One third at least.

(l:en is alias for language:english; BTW the FN LN pattern was found to be frequent if the language is not english)
Comfy.n is online now   Reply With Quote
Old 02-21-2026, 08:19 PM   #8
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 50,475
Karma: 178402706
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
I remember going through my library a couple of years back using Quality Check on the author names/sort. Out of ~14,000 ebooks, 130 had an error in the author/author sort. I corrected those and currently show no issues.

For any new books I do individual metadata updates. One recent anthology for my spouse showed FaRo Authors as the author and author sort. Following my usual habit that was replaced with the full list of authors just to make it more searchable.
DNSB is offline   Reply With Quote
Old 02-21-2026, 08:33 PM   #9
Comfy.n
want to learn what I want
Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.
 
Posts: 1,952
Karma: 7955879
Join Date: Sep 2020
Device: none
hmm, let me correct my stats:

(l:en tags:"=fileas-search-comma") not a:~^\(\\p{L}\\p{M}*\)+$
13345 items - 47%

(l:en not tags:"=fileas-search-comma") not a:~^\(\\p{L}\\p{M}*\)+$
15021 items - 53%

l:en not a:~^\(\\p{L}\\p{M}*\)+$
28366 items

So... it's actually kind of split who uses file-as FN LN - LN, FN in this sample universe.
Comfy.n is online now   Reply With Quote
Old Yesterday, 06:22 PM   #10
ShellShock
Wizard
ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.
 
ShellShock's Avatar
 
Posts: 1,183
Karma: 2431850
Join Date: Sep 2008
Device: IPad Mini 2 Retina
The possible formats of author names is so varied, especially with initials versus full names, multiple authors etc, that it is safer for Calibre to assume that if an author name is defined in the OPF it should use it and not override it with what may be an incorrectly derived value.
ShellShock is offline   Reply With Quote
Old Yesterday, 06:49 PM   #11
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 82,149
Karma: 150871427
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by ShellShock View Post
The possible formats of author names is so varied, especially with initials versus full names, multiple authors etc, that it is safer for Calibre to assume that if an author name is defined in the OPF it should use it and not override it with what may be an incorrectly derived value.
But if it matches the author name, it's incorrect. If it's all caps it's incorrect. Those are situations that should be fixed by calibre when getting the metadata from the OPF.
JSWolf is offline   Reply With Quote
Old Today, 02:45 AM   #12
ShellShock
Wizard
ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.
 
ShellShock's Avatar
 
Posts: 1,183
Karma: 2431850
Join Date: Sep 2008
Device: IPad Mini 2 Retina
Quote:
Originally Posted by JSWolf View Post
But if it matches the author name, it's incorrect. If it's all caps it's incorrect. Those are situations that should be fixed by calibre when getting the metadata from the OPF.
Why? It depends what format the author’s name is in, and whether the user wants to sort by that format. Some people like to sort by first name+surname, and if both fields are in that format then it correct for that user. The onus is on us, the user, to always check that the sort field is what we want - this is the first thing I do when I add a book to the Calibre library.
ShellShock is offline   Reply With Quote
Old Today, 03:10 AM   #13
Mr_H_Poirot
Enthusiast
Mr_H_Poirot doesn't litterMr_H_Poirot doesn't litter
 
Posts: 26
Karma: 100
Join Date: Mar 2025
Device: Kobo Clara BW
I followed the instructions here (https://www.mobileread.com/forums/sh...d.php?t=339606) when I first got my kobo. This means I have a situation where my authors are sorted in calibre in alphabetical order by surname, but displayed 'firstname surname'.

The link said this was necessary to get them displaying correctly on the kobo

Is this still the case in the latest versions? I don't really want to play around in case I mess up the kobo
Mr_H_Poirot is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Sort by author and then publish date (multi-column sort)? badbob001 Library Management 7 07-22-2020 07:45 PM
Author a z sort bug stumped Calibre Companion 24 04-29-2017 09:09 AM
Maybe a bug: French accents in author sort copy method BlackWinny Library Management 4 09-03-2015 10:43 PM
Minor bug with Author -> Author Sort guspasho Calibre 2 12-29-2012 06:54 AM
Touch Kobo Touch - Author Sort Bug Nigol Kobo Reader 2 06-18-2011 06:45 PM


All times are GMT -4. The time now is 10:49 AM.


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