iOrder numbers for autogenerated scenarios are not selected properly
From what I can tell, UpdateEntArea_Media.cpp assumes that it can just select iOrder numbers without checking what exists in the database. This sometimes results in an iOrder number being used twice when adding new autogenerated scenarios. If an iOrder number is used twice, then scenarios may mysteriously disappear from the Orbiters.
The code should check for a unique number before it puts it in the database.
Workaround is to use the "sort scenarios" feature on the web admin, which will rewrite all the iOrders with the proper order and spacing.