issue #20044: Update database to _always_ sort toMany relations by id, and backbone-x to keep track of toMany array sort and make sure it is always returned in create order.