Quantcast
Channel: THWACK: All Content - All Communities
Viewing all articles
Browse latest Browse all 20518

Proper Numeric IP Address Sort

$
0
0

When using Manage Orion to locate and sort nodes, have you ever noticed that the IP addresses don't sort properly? They sort like this:

 

1.2.3.4

129.95.30.40

19.20.203.5

19.20.21.22

5.220.100.50

5.24.69.2

 

when they should sort like this:

 

1.2.3.4

5.24.69.2

5.220.100.50

19.20.21.22

19.20.203.5

129.95.30.40

 

This problem is detailed using GNU Sort as an example, which shows each step, and how the sort tool itself: http://networking.ringofsaturn.com/Unix/ipsort.php

 

In short, similar to the sort tool using -k to sort each field in sequence, I'd love to see SPM properly sort IP addresses in such a fashion.


Viewing all articles
Browse latest Browse all 20518

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>