improve array_sort_subkey to not use create_function should fix some memory leaks