TLDR Isak had trouble with Norwegian alphabet sorting in Typesense. Kishore Nallan explained that Typesense doesn't support locale specific sorting and proposed different character replacements. Isak found an acceptable solution.
Hi Isak, Typesense does not support locale specific sorting. Since sorting is based on lexiographic ordering, it only works on English.
One work around is to see if it's possible to represent string in equivalent English form that could give the same order. However I realise it might not even be possible.
Hmm thats understandable, are there any characters after Z in lexiographic ordering i can replace with?
Found a solution: æ = zzzza ø = zzzzb å = zzzzc
The pipe character and curly braces also appear at the end:
Well thats a better workaround. :slightly_smiling_face: Thank you!
Isak
Sat, 20 Aug 2022 14:34:46 UTCHello, When i sort after Ø, Æ and Å. They come above A and not after Z. In the norwegian alphabet, ÆØ and Å comes after Z not before. *Example:* ABCDEFGHIJKLMNOPQRSTUVWXYZÆØÅ. *In typesense it seems like this:* ÆØÅABCDEFGHIJKLMNOPQRSTUVWXYZ. *Example the way i want it to sort:* • Albert Einstein • Bill gates • Ørken Mannen *Example the way typesense sort it:* • Ørken Mannen • Albert Einstein • Bill gates