Refactor app fragment sorting to remove unnecessary allocations of sort methods