TiiToo / vegas

Automatically exported from code.google.com/p/vegas
1 stars 0 forks source link

[AS2] vegas.util.comparators.NumericComparator #17

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Finir les tests de la classe

Pour le moment j'ai 

{{{
import vegas.events.Delegate ;
import vegas.util.comparators.NumericComparator ;

var ar:Array =
[
    "a0" , "a1",  "a2",  "a10" , "a11" , "b1" , "b2" , "b0" , "b01",
"b001", "c0"
] ;

var c:NumericComparator = new NumericComparator.getIgnoreCaseInstance() ;

ar.sort( Delegate.create( c , c.compare ) , Array.CASEINSENSITIVE ) ;
trace( ar ) ; // a0,a1,a2,a10,a11,b1,b2,b0,b01,b001,c0

ar.sort( Delegate.create( c , c.compare ) , Array.CASEINSENSITIVE |
Array.DESCENDING ) ;
trace(ar ) ; // c0,b001,b01,b0,b2,b1,a11,a10,a2,a1,a0

}}}

Original issue reported on code.google.com by ekamel...@gmail.com on 19 Sep 2007 at 10:21

GoogleCodeExporter commented 9 years ago

Original comment by ekamel...@gmail.com on 1 Nov 2007 at 8:31

GoogleCodeExporter commented 9 years ago

Original comment by ekamel...@gmail.com on 18 Dec 2008 at 10:26