Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Sorting. Though I don't think there's a culture-agnostic way to do this, either.


Not universally, no. The closest for English-language use is to put a spurious comma between family and given name (e.g., "Cixin, Liu" for Cixin Liu).

In an ebook management system I've been developing, I use a full_name and a sort_name field for authors/editors/contributors, because books are a reasonable thing to want to sort by author names.


Even this has some culturally confusing elements, doesn't it?

For example, in my studies I had cause to read many books by Hans Urs von Balthasar. Nobody ever referred to him as "von Balthasar," just "Balthasar," but his books were always sorted by the "von."


> Nobody ever referred to him as "von Balthasar," just "Balthasar," but his books were always sorted by the "von."

I'm pretty sure I've seen a by-name sorting scheme that excludes these sorts of prefixes for alphabetisation purposes. Of course, then you have to second guess whether you are using such a sorting system :)


I believe that the von should be included in sorting in some languages and not in others. It's a Dutch/German difference, though I cannot recall which is which.


Even this has some culturally confusing elements, doesn't it?

It's never not going to.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: