Catalogue sorting error

Bug #1483666 reported by John English on 2015-08-11
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
calibre
Undecided
Unassigned

Bug Description

Given two series "Sharpe" and "Sharpe Extra", it turns out that "Sharpe Extra" is sorted before "Sharpe" in the catalogue. The same problem occurs with authors, e.g. "Frederik Pohl (ed.)" appears before "Frederik Pohl".

After adding series Sharpe?Extra and Sharpe:Extra to obtain more data, the catalogue contains the following:

<p class="series">
<a class="calibre3" href="part0002.html#sharpeextra_series">
Sharpe:Extra
</a>
</p>
<p class="line_item">
<span class="prefix">
*
</span>
<span class="entry">
<a class="calibre3">
[1] Sharpe's Skirmish
</a>
</span>
</p>
<p class="series">
<a class="calibre3" href="part0002.html#sharpeextra_series">
Sharpe?Extra
</a>
</p>
<p class="line_item">
<span class="prefix">
*
</span>
<span class="entry">
<a class="calibre3">
[2] Sharpe's Christmas
</a>
</span>
</p>
<p class="series">
<a class="calibre3" href="part0002.html#sharpe_series">
Sharpe
</a>
</p>
<p class="line_item">
<span class="prefix">
*
</span>
<span class="entry">
<a class="calibre3">
[21] Sharpe's Devil
</a>
</span>
</p>

(It would appear from this that the sorting uses the HREF, so e.g. "part0002.html#sharpeextra_series" appears BEFORE "part0002.html#sharpe_series", but this is not reliable after punctuation has been removed from the original series name, especially when "_series" is tacked onto the end of the reduced name.)

OS: Windows 7 and 8
Calibre versions: 2.32

Note: this bug was originally pointed out in this thread on the MobileRead forum:

http://www.mobileread.com/forums/showthread.php?t=259476

As it has not been fixed yet, I'm now reporting it.

Changing the component for this bug.

 assignee griker
 tag catalogs
 status triaged

Changed in calibre:
assignee: nobody → GRiker (griker)
status: New → Triaged
John English (john-foreign) wrote :

An addition to the previous bug report: where an author is also an editor, the following situation also arises:

 Bill Bryson
      The Mother Tongue
 Bill Bryson (ed.)
      Seeing Further
 Bill Bryson
      A Short History of Nearly Everything

The books for both "Bill Bryson" and "Bill Bryson (ed.)" appear in correct title order as a whole (The Mother Tongue, Seeing Further, A Short History of Nearly Everything), but are then divided up between "Bill Bryson" and "Bill Bryson (ed.)"

Marcelo Sanseau (ms100) wrote :

The bug is still present in calibre 3.10, nov 1, 2017;

Kovid Goyal (kovid) wrote :

Since GRiker, the person who wrote the epub catalog code is no longer
active, this bug is not likely to get fixed unless someone steps up.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers