Search:
Class o2.SortDelegate
static
class
o2.SortDelegate
Function Summary
static
sort()
A generic sort function.
If the collecion consists of String
s and
Number
s, String
s will be stored
alphabeticaly at the bottom, and
Number
s will be sorted numerically before them.
Usage example:
var ar = [1, 7, '12', 8, 'lorem', 'c', 42, 7]; a.sort(o2.SortDelegatae.sort);
static
sortAsc()
An alias to o2.SortDelegate.sort.
static
sortDesc()
Works similar to {link o2.SortDelegate.sort}. The only difference is that the items are sorted in a descending order.
Usage example:
var ar = [1, 7, '12', 8, 'lorem', 'c', 42, 7]; a.sort(o2.SortDelegatae.sortDesc);
Function Details
function sort
static
sort()
A generic sort function.
If the collecion consists of String
s and
Number
s, String
s will be stored
alphabeticaly at the bottom, and
Number
s will be sorted numerically before them.
Usage example:
var ar = [1, 7, '12', 8, 'lorem', 'c', 42, 7]; a.sort(o2.SortDelegatae.sort);
function sortAsc
static
sortAsc()
An alias to o2.SortDelegate.sort.
See also:
function sortDesc
static
sortDesc()
Works similar to {link o2.SortDelegate.sort}. The only difference is that the items are sorted in a descending order.
Usage example:
var ar = [1, 7, '12', 8, 'lorem', 'c', 42, 7]; a.sort(o2.SortDelegatae.sortDesc);
Custom delegates for
Array.sort
method.