Hacker News new | past | comments | ask | show | jobs | submit login

Why wouldn't you just accept the entire thing as a Unicode string and use the culture-free Unicode Collation Algorithm?



I don't mean to ask about or promote any particular sort algorithm. Rather, I'm discussing the transformation of a name into a "sort string," which will then be sorted (the algorithm you mention being a fine choice for this) after said transformation. Given discrete first/last fields, the transformation I mentioned works well for my purposes, but if I didn't have those particular discrete fields (instead having full/short fields) then it would be quite difficult, likely needing the user to weigh in, which I think is an atypical UX.


Because then you are sorting by the first name, and most people in Europe/America do not expect list of names to be sorted like that.




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

Search: