ArrayIterator::uasort

Sort with a user-defined comparison function and maintain index association

This method sorts the elements such that indices maintain their correlation with the values they are associated with, using a user-defined comparison function.