Bookshelf Home | Contents | Index | PDF |
Siebel eScript Language Reference > C Language Library Reference > Other Clib Methods > Clib Sort Array MethodThe Clib Sort Array method sorts elements in an array, starting with index 0, and then continuing to the value that you specify in the elementCount argument minus 1. This method differs from the Sort Array method in standard JavaScript in the following ways:
FormatClib.qsort(array, [elementCount, ]compareFunction) Table 190 describes the arguments for the Clib Sort Array method.
ExampleThe following example prints a list of colors sorted in reverse alphabetical order, ignoring case: // initialize an array of colors This example produces the following output:
Related TopicsFor more information, see Sort Array Method. |
Siebel eScript Language Reference | Copyright © 2018, Oracle and/or its affiliates. All rights reserved. Legal Notices. | |