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