Definitely remove the sorting.
If possible, don't convert to a List either, if JSON serialization prints a Set as a JSON array.