Thanks all for input on sorting solutions. I’m still having some problems with a final implementation but as soon as I have something I will post back.
Thanks and regards
Nick
---
You are currently subscribed to vrf as: ming_meng@agilent.com
To subscribe please send an email to: "vrf-request@lists.it.agilent.com" with the word subscribe in the message body.
To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com".
To send messages to this mailing list, email "vrf@agilent.com".
If you need help with the mailing list send a message to
"owner-vrf@it.lists.it.agilent.com".
Search the "unofficial vrf archive" at "http://www.vrfarchive.com/vrf_archive".
Search the Agilent vrf archive at "http://vee.engineering.agilent.com".
Thanks and regards
Nick
---
You are currently subscribed to vrf as: ming_meng@agilent.com
To subscribe please send an email to: "vrf-request@lists.it.agilent.com" with the word subscribe in the message body.
To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com".
To send messages to this mailing list, email "vrf@agilent.com".
If you need help with the mailing list send a message to
"owner-vrf@it.lists.it.agilent.com".
Search the "unofficial vrf archive" at "http://www.vrfarchive.com/vrf_archive".
Search the Agilent vrf archive at "http://vee.engineering.agilent.com".
Does anyone have any ideas or implementation for correctly sorting an array of alphanumeric values. I am talking about sorting values of type (always a text string):
10.0.0.1.a
10.0.0.1.b
10.1.1
1.1.3.2
1.11.1.1
1.11.a.1
2.2.2.2
2.2.20.2.1.1.a
2.20.1
Essentially there is (currently) no limit on the length of the string.
Currently, if I simply use the vee sort function the output array is returned as:
1.1.3.2
1.11.1.1
1.11.a.1
10.0.0.1.a
10.0.0.1.b
10.1.1
2.2.2.2
2.2.20.2.1.1.a
2.20.1
Whereas correct sort order (in my opinion) should be:
1.1.3.2
1.11.1.1
1.11.a.1
2.2.2.2
2.2.20.2.1.1.a
2.20.1
10.0.0.1.a
10.0.0.1.b
10.1.1
I have tried various things like padding all entries to a particular size (string length).
Any ideas would be greatly appreciated.
Thanks
Nick
---
You are currently subscribed to vrf as: ming_meng@agilent.com
To subscribe please send an email to: "vrf-request@lists.it.agilent.com" with the word subscribe in the message body.
To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com".
To send messages to this mailing list, email "vrf@agilent.com".
If you need help with the mailing list send a message to
"owner-vrf@it.lists.it.agilent.com".
Search the "unofficial vrf archive" at "http://www.vrfarchive.com/vrf_archive".
Search the Agilent vrf archive at "http://vee.engineering.agilent.com".