Sorting IP Address

Sorting IP Address

techplextechplex Posts: 3Questions: 0Answers: 0
edited July 2013 in DataTables 1.9
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

Replies

  • techplextechplex Posts: 3Questions: 0Answers: 0
    edited July 2013
    Problem Solved, I have negative IP Address which will indicate DHCP, and they weren't included in the regex.

    Thanks Anyway!
  • techplextechplex Posts: 3Questions: 0Answers: 0
    Is there anyway to delete the test case? I realized I'd rather not have all those IP's out there.
  • allanallan Posts: 63,498Questions: 1Answers: 10,470 Site admin
    Now deleted.

    Good to hear you got the problem sorted out.

    Allan
This discussion has been closed.