I am making a database program to automate game turns for a proportional movement game system, and cannot figure how to have FM sort the units moving each turn. Each record is a different unit, saving the unit's speed, information, etc.
There are 32 separate moves per turn, with some, none, or all of the units moving during each of the 32 segments. Whether a unit moves depends on its speed, i.e., something moving Speed 32 will move each segment, something moving Speed 16 will move every other segment, something moving Speed 4 will move every eighth segment, etc. I have it set up by a separate field for Segment 1, Segment 2, etc., to calculate whether a unit moves that segement based on its current speed. Each segment, though, the slowest unit will move first, followed by the second slowest, etc.
After determining which units move in that segment, what I am looking to do is output a list of the units ***in the order that they move*** (slowest to fastest). Therein is my problem. They are already in the database and a simple sort doesn't work (or I can't get it to work). A summary field doesn't work either as I need to keep it out of Preview Mode so I can maintain interaction with the fields. Can anyone help with a function, string, relation, solution, approach, etc., that can perform this?