incorrect sorting of Polish characters ąć, etc.

incorrect sorting of Polish characters ąć, etc.

scorpion10scorpion10 Posts: 1Questions: 1Answers: 0

incorrect sorting of Polish characters ąć, etc.

Answers

  • sandysandy Posts: 913Questions: 0Answers: 236

    Hi @scorpion10 ,

    You may want to look at creating a plugin for sorting polish characters. I'd imagine it would be fairly similar to this one for czech characters. If you would like, you can submit a pull request with the any plugin that you create here.

    Thanks,
    Sandy

  • rf1234rf1234 Posts: 2,950Questions: 87Answers: 416

    I think that already exists ...
    https://datatables.net/plug-ins/sorting/intl

    And here is a blog post by Allan:
    https://datatables.net/blog/2017-02-28

    It is the international sorting plugin. Depending on the user language I use it to sort according to German "phonebook" rules or English UK.

    //sorting:
    //Use the phonebook variant of the German sort order, 
    //which expands umlauted vowels to character pairs: ä → ae, ö → oe, ü → ue.
    if (lang === 'de') {
        $.fn.dataTable.ext.order.intl("de-DE-u-co-phonebk");
    } else {
        $.fn.dataTable.ext.order.intl("en-GB");
    }
    

    What I know also works is "de-AT" and "de". So for Polish I would try with "pl-PL" or just with "pl".

    Somewhere there is a list of the supported languages. I happened to find my prefered sorting for German by chance. Good luck!

Sign In or Register to comment.