[CHANGE] Sort GameVersions set#4
Conversation
|
Are you happy with this PR, or do you still have anything else you want to add? |
I tested this by adding an invalid version to
I'll do this instead. |
This makes it easier to scan through valid versions.
2724e29 to
a009ecd
Compare
Done and tested:
Happy now it's tested (and fixed) I kept a |
As per my aside in #3, a sorted list of valid versions is easier to digest.
If I understand
TObjectLongHashMap, the map is implemented as an array so insertion order is preserved. Therefore, I opted to sort before inserting. Alternatively, we could sort only when rendering the exception message.