A.ArraySort Class
Augment the YUI3 ArraySort with more util methods.
Constructor
A.ArraySort
()
Index
Methods
Methods
compareIgnoreWhiteSpace
(
-
a -
b -
desc -
compareFn
Compare two arrays ignoring white spaces.
Parameters:
-
aObject -
bObject -
descObject -
compareFnObject
Returns:
sort
stableSort
(
-
array -
compareFn
Sorts an object array keeping the order of equal items. ECMA script standard does not specify the behaviour when the compare function returns the value 0;
Parameters:
-
arrayObject -
compareFnObject