From: Graham B. <gb...@po...> - 2000-09-08 14:03:29
|
They are probably sorted this way because they are stored a strings on the server. I do not know if there is a special OID you could use to control the sort of IP addresss, but I would guess there is not. Graham. On Wed, Sep 06, 2000 at 03:06:47PM -0700, Jeff Mandel wrote: > 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 > > > |