X2CommunityCore / X2WOTCCommunityHighlander

https://steamcommunity.com/workshop/filedetails/?id=1134256495
MIT License
60 stars 68 forks source link

Make a more efficient sorting algorithm available to Highlander users #61

Open MalucoMarinero opened 6 years ago

MalucoMarinero commented 6 years ago

just referencing suggestion from campaign save fix issue to make an efficient sorting algorithm available to modders

Iridar commented 1 year ago

a while back I discovered that UnrealScript's Sort function just gives up after a certain number of elements

sorting integers it gave up at around 90 elements

(c) robojumper

Just to highlight how dire the situation is. It's not even about .Sort() being inefficient, but literally not working with large arrays.

Until this issue is resolved, mods are encouraged to implement their own sorting algorithms for large arrays, insertion sort being the recommended simple solution.