Late to the thread.  Doesn't Flash 7 have Array.sortOn built in?

----- Original Message ----- 
From: "Michael Bedar" <[EMAIL PROTECTED]>
To: "Flashcoders mailing list" <flashcoders@chattyfig.figleaf.com>
Sent: Saturday, April 15, 2006 8:03 PM
Subject: Re: [Flashcoders] Re: Sorting objects within an Array


Glad its working for you, but thats so Flash 6.


On Apr 15, 2006, at 7:33 PM, Stephen Ford wrote:

> Thanks all.
>
> I found this function online and it works perfectly:
>
> -----------------------------------------------------------------
> Array.prototype.sortOn = function(p){    Array.$sortprop = p;     
> var sortfunc = function (a, b)    {        var p = Array. 
> $sortprop;        return b[p] < a[p];    }    this.sort 
> (sortfunc);    delete Array.$sortprop;}
> ----------------------------------------------------------------- 
> _______________________________________________
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com

_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com
_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to