oguzhankircali
12/6/2018 - 11:43 AM

DataTable.JS Internationalization Order/Sort Trick

If your data which is sortable and starts with your language spesific character, you should add this to your page to sort correctly.

For Example; If you sort by Type desc

Before;

IdTypeCool
2Ç$1600
1A$12
8T$1

After;

IdTypeCool
8T$1
2Ç$1600
1A$12
    <script src="https://cdn.datatables.net/plug-ins/1.10.16/sorting/intl.js"></script>

    <script type="text/javascript">
        $.fn.dataTable.ext.order.intl("tr-TR");
    </script>