Sorting issues
-
Hello Tobias
I’m sorry to be bothering you but I have a sorting issue with a table that I hope you can help me with. I tried searching for answers in the forum, but was unable to find the correct solution.First of all, the table is in Icelandic but the 2nd column does not sort correctly (in Icelandic) alphabetically.
The Icelandic alphabet looks like this:
A, á, B, D, D, E, é, F, G, H, I, í, J, K, L, M, N, O, ó, P, R, S, T, U, ú, V, X, Y, Y, T, ?, ?
But if you look at the 2nd column, you can see that á and ó are placed before T, which is incorrect.
I have added the locale to my shortcode so it now it looks like this:
[table id=12 datatables_locale=”is_IS” /]But unfortunately that does not work.
—————-
My second issue is with sorting the date. I would like to have the dates in Icelandic; like this f.ex.:
1. des. 2018
25. jan. 1992
12. sept. 1873
But I could not get that to sort correctly – it only sorted by the first number like this:
1. des. 2018
12. sept. 1873
25. jan. 1992
Which is chronologically incorrect. So I changed the dates to this format: dd-mm-yyyy but it still would not sort correctly.I have added the plugin “DataTables Sorting plugins” and tried adding:
“columnDefs”: [ { “type”: “formatted-num”, “targets”: [ 3 ] } ]
and
“columnDefs”: [ { “type”: “date-eu”, “targets”: [ 3 ] } ]But nothing worked.
Do you have any ideas on how I could fix these two issues?
Thank you in advance
RakelThe page I need help with: [log in to see the link]
- The topic ‘Sorting issues’ is closed to new replies.