Sorting the result set is important in that it ensures the same result is provided by the query from any server (caching and fingerprinting affected). Also it's not just sorting but deduplication, which is important given the distinct possibility of duplicate txs.