Found in: /wiz/mimi/update/misc.c

sort_by_value(arr, f) returns the array arr sorted in such                                        
a way that the elements are in increasing order, as defined by the                                
value of the function f                                                                           
