Sort games chronologically before adding to the database.

Format res source.