From: [EMAIL PROTECTED]
> On Thu, 25 Mar 2004 [EMAIL PROTECTED] wrote:
> 
> > any modules out there that can sort things such as.. BB10,
> > BB1100,BB11.   I want it to be in this order. BB10,BB11,BB1100.
> 
> yeah, if you have 5.8 you can use mergesort from the sorts module
> 
> use strict; use warnings;   # always!
> use sort '_mergesort';      # only work with perl 5.8
> 
> <snipped>
> 
> -- 
> Christian Bolstad - [EMAIL PROTECTED]

Erm ... why?
There is no point in using the sort pragma/module in this case.

Unless you either need the sort() to be stable (A stable sort means 
that for records that compare equal, the original input ordering is 
preserved.) you should not need to use it.

There is very seldom any reason to force either mergesort or 
quicksort.

Jenda
===== [EMAIL PROTECTED] === http://Jenda.Krynicky.cz =====
When it comes to wine, women and song, wizards are allowed 
to get drunk and croon as much as they like.
        -- Terry Pratchett in Sourcery


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to