sort_array

./driver3.2@242/doc/efun/sort_array · 358 B

From the archive driver3.2@242.tar.gz

Download the archive   « Back to the archive contents

mixed *sort_array(mixed *arr, string greater_fun, object ob);

Returns an array sorted by the ordering function ob->greater_fun()

The function 'greater_fun' in the object 'ob' is continously passed two
arguments which are two of the elements of the array 'arr'. It should return
true or a positive number if the first argument is greater than the second.

Site Stats

Snippets: 1791
Codebases: 571