Bookshelf Home | Contents | Index | PDF |
Siebel eScript Language Reference > Siebel eScript Commands > The Clib Object Uncategorized Methods > Clib.qsort() MethodThis method sorts elements in an array. SyntaxClib.qsort(array, [elementCount, ]compareFunction) UsageThis method sorts elements in an array, starting from index 0 to elementCount-1. If elementCount is not supplied, the method sorts the entire array. This method differs from the Array.sort() method in that it can sort dynamically created arrays, whereas Array.sort() works only with arrays explicitly created with a new Array statement. ExampleThe following example prints a list of colors sorted in reverse alphabetical order, ignoring case: // initialize an array of colors The output of the preceding code would be:
See Also |
Siebel eScript Language Reference |