It's truly the weirdest thing. It seems to be determined by group_id, regardless of whether or not all the group IDs are the same. If you sort by created or id, you don't get expected results. The order reflects whatever group_id sorts into. I've tried exporting the table, dropping the old one, and reimporting, and the group_id order is random every time. Weird!