Sorting IP Address
Sorting IP Address
techplex
Posts: 3Questions: 0Answers: 0
Greetings,
From what I understand IP Address sorting and detection is not part of datatable core. SO I piecemealed a solution.
I am using a slightly modified version of this code for sorting(http://datatables.net/forums/discussion/9658/sorting-on-ip-address/p1)
And this code for type detection, (http://datatables.net/plug-ins/type-detection#ip_address)
Is there another plugin or something I need to do? It seems like IP Address are being sorted as strings.
Below is my Datatables debug information:
http://debug.datatables.net/uyujuv
Thanks,
Blake
Heres my test case: (It seems a bit broken, with no sorting)
http://live.datatables.net/ifuzep/3/edit#javascript,html
From what I understand IP Address sorting and detection is not part of datatable core. SO I piecemealed a solution.
I am using a slightly modified version of this code for sorting(http://datatables.net/forums/discussion/9658/sorting-on-ip-address/p1)
And this code for type detection, (http://datatables.net/plug-ins/type-detection#ip_address)
Is there another plugin or something I need to do? It seems like IP Address are being sorted as strings.
Below is my Datatables debug information:
http://debug.datatables.net/uyujuv
Thanks,
Blake
Heres my test case: (It seems a bit broken, with no sorting)
http://live.datatables.net/ifuzep/3/edit#javascript,html
This discussion has been closed.
Replies
Thanks Anyway!
Good to hear you got the problem sorted out.
Allan