Gentee Programming Language > Documentation > Libraries Download documentation

arr.sort

Sort array items according to the sorting function. The function must have two parameters containing pointers to two compared items. It must return int less than, equal to or greater than zero if the left value is less than, equal to or greater than the first one respectively.
 
arr arr.sort(
      uint   sortfunc
)

Parameters

sortfuncSorting function.

Return value

Returns the object which method has been called.

See also

    Arrays


 Copyright © 2004-2006 Gentee Inc. All rights reserved.