Page MenuHomePhabricator

Wrong name sorting per defaultsort in case of surnames consisting of more than one name
Open, Needs TriagePublic

Description

Examples: Brito de Martí, Esperanza is sorted before Brito, Leonora or Campos Menéndez, Enrique is sorted before Campos, Julieta.
See also this discussion: https://en.wikipedia.org/wiki/Wikipedia_talk:Categorization_of_people#Brito_de_Mart.C3.AD_before_Brito
So a space seems to be sorted before a comma which leads to a wrong sorting in these (rare) cases, in the above mentioned cases in the category: 2007 deaths.

Event Timeline

Hi @Proofreader, thanks for taking the time to report this!
Please see https://mediawiki.org/wiki/How_to_report_a_bug and provide a link that allows reproducing, as different languages have different sorting settings.
Is this about categories? Is this about table entry sorting? Something else?

It shows in categories, the examples show up in [https://en.wikipedia.org/wiki/Category:2007_deaths].
I checked if this problem also occurs in de wikipedia; this phenomenon is somewhat rare, you only come across it in large person categories where you have people with the same surname and one of them has a second surname, which is the case for Spanish names for example. I found an example in the respective German category [https://de.wikipedia.org/w/index.php?title=Kategorie:Gestorben_2007&pagefrom=Finisterre%2C+Alejandro%0AAlejandro+Finisterre#mw-pages] where Rafael Ángel González Ramírez (surnames are González Ramírez) is sorted before Edgardo González. In the respective articles the DEFAULTSORT (=SORTIERUNG in German) entries are: "Gonzalez Ramirez, Rafael Angel" and "Gonzalez, Edgardo" respectively.

The first link should read https://en.wikipedia.org/wiki/Category:2007_deaths - didn't work correctly because of the brackets.

And the problem is the sorting order in these categories. As I see it, a surname consisting of only one name should be sorted before an entry consisting of that same surname plus a second surname. I am not sure but I think this is how other encyclopedias do their sorting.