Rename `sub_events.order` to `sub_events.weight`

This solves the problem of the column name conflicting with the `ORDER`
SQL keyword.