From: Jeff M. <jef...@pr...> - 2000-09-06 22:06:53
|
In sorting a return list from LDAP of hostnames and IP addresses, the sort order falls to the old standard that 2 is greater than 19. ie "Sorted by iphostnumber appears in this order" Host 18: 10.1.16.18 Host 19: 10.1.16.19 Host 2: 10.1.16.2. Likewise you get 10.1.16.1 10.1.16.10 10.1.16.11 10.1.16.2 instead of 10.1.16.1 10.1.16.2 10.1.16.10 10.1.16.11 Perl is handy at sorting things the way most folks want to see them, but since we're taking advantage of LDAP server sorts, is there some special way to call the sort so numbers sort in order? Thanks, Jeff |