Numerical Sort From: Roland Schulz - 2002-06-28 21:47:19 ```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 ```
 Numerical Sort From: Roland Schulz - 2002-06-28 21:47:19 ```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 ```
 Re: Numerical Sort From: Bob Goolsby - 2002-06-28 23:48:03 ```Try \$aa = "1000"; \$bb = "200"; if(\$aa<\$bb) {print"\$aa < \$bb is TRUe\n")} and let me know what you see. B 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 -- Bob Goolsby goolsby@... The only thing with more energy than a puppy with a bone is a puppy with *two* bones. ```
 Re: Numerical Sort From: Jim Harle - 2002-06-29 14:48:28 ```From the Camel: sub numerically { \$a <=> \$b; } @sortedbynumber = sort numerically 53,29,11,32,7; --Jim Harle 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 > ```
 Re: Numerical Sort From: Roland Schulz - 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 ```