Update utility sorting functionality.
Merge pull request #2175 from vanilla/hotfix/utility-sort

Update utility sorting functionality.