Skip to content

Conversation

@LordMidas
Copy link
Member

This function seems important because we had a really mysterious bug in Reforged caused by a very sneaky bug in Dynamic Spawns Framework which wasn't really a bug but a consequence of the fact that the squirrel array.sort does not preserve order for equal elements. It was causing units of equal cost in a unit block to become randomly ordered and this was not very obvious at all.

We need a function that sorts in a stable way, at least for use cases where the order is important.

@LordMidas LordMidas requested a review from TaroEld April 15, 2025 05:54
@LordMidas LordMidas force-pushed the development branch 2 times, most recently from 6677ac8 to ae825b7 Compare June 17, 2025 23:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants