Try to load collection from data file first, and do a collection-to-collection comparison. If that passes, don't bother doing a string comparison.
The string comparison can fail due to different platforms sorting items in a different order, even though the collections are the same.