add and test array_sort(...)
add entitypool_sort(...)
add depth-sorting for gui_rect to sort by hierarchy (children on top)