s@rdalya

 

SortHelper

Page history last edited by vozcelik 3 yrs ago


 

SortHelper

Object Summary

SortHelper is a helper class that is used to re-sort Array members with Array's sort method.

 

For instance, this object can be used to re-order columns of a DataGrid-like structure in ascending or descending order on the client-side without going back and forth to the server

at each re-sort.


Constructor

This object has no constructor. It is accessed statically.


Methods

 

SortHelper.genericSort(a,b)

 

parameters

a - The first parameter to compare.

b - The second parameter to compare.

 

comments

The method is used to sort an Array in ascending order. First numbers are sorted, then letters are sorted.


SortHelper.genericSortDesc(a,b)

 

parameters

a - The first parameter to compare.

b - The second parameter to compare.

 

comments

The method is used to sort an Array in descending order. First numbers are sorted, then letters are sorted.


See Also

 

Array helper methods


Usage Examples

 

Comments (0)

You don't have permission to comment on this page.