Concept Framework 2.2 documentation | Contents | Index |
Name | Type | Access | Version | Deprecated |
FindSortedPlace | function | static | version 1.0 | no |
static function FindSortedPlace(arr, sort_column, element, direction) |
arr | array of MultiItems. |
sort_column | the number of the column in the array to use as the sort column |
element | an array or an element that need to be added the the array (arr parameter) |
direction | 1 for ascending, anything else for descending |
This function finds the position to add an element, in order to keep the array sorted. It uses a simple binary search in order to get better timings. |
Documented by Eduard Suica, generation time: Sun Jan 27 18:15:06 2013 GMT | (c)2013 Devronium Applications |