Sort_Func
Objects
Search
5.1 OC
array
string
function
Function to call
...
Parameters of the function.
Sort criterion: Sorts the found objects by the int result of the indicated function. Objects with smaller values first.
Warning: never use this with a function which might have side effects. If a function is not guaranteed to be harmless, a new, side-effect-free function needs to be written.
For additional information on the use of this function see FindObjects.
FindObjects(Find_Distance(100), Sort_Func("GetDefWidth"))
Sorts all objects inside a maximum distance of 100 pixels by their width, beginning with small objects.
FindObjects
Newton2009-07