Ensure array returned by Utility::ls is sorted