From: Roland S. <ma...@r2...> - 2002-06-29 16:56:55
|
Hallo, On Samstag, 29. Juni 2002 16:51, Jim Harle wrote: > sub numerically { $a <=> $b; } > @sortedbynumber = sort numerically 53,29,11,32,7; Sorry I wan't specific enough. I knew how to sort numerically in perl. But I wanted to use Net::LDAP::Control::Sort to let Ldap sort for me. Because otherwise I first have to get all data to find the largest. regards Roland Schulz > On Thu, 27 Jun 2002, Roland Schulz wrote: > > Hey, > > > > how can I sort by the numerical value (e.g. by uid) instead of by the > > string. So I want 1000 to be greater than 200. > > > > Please CC to me since I'm not on the list. Thanx for you help. > > > > regards > > Roland Schulz > > > > > > > > ------------------------------------------------------- > > This sf.net email is sponsored by:ThinkGeek > > Caffeinated soap. No kidding. > > http://thinkgeek.com/sf |