Comment 2 for bug 1422116

Revision history for this message
Charles Haley (cbhaley) wrote :

@kovid: I can fix this, but I am not convinced that I should. The problem arises because when sorting, ICU considers Æ to the two characters AE, but when comparing Æ is a single letter. This means that Æ will always sort into its proper place in a group of items beginning with A.

Example: if the authors are displayed without categorization, the correct order is Aaa, Æa, Afa. If they are displayed with first letter categorization then the correct order is Aaa, Afa, Æa so that Æ is separated from the other As. I believe that get_categories should return the list in the non-categorized order, which means that if first-letter categorization is on then the tag browser must resort the list. Is it worth the performance penalty for a case that almost never happens?