Sort games by games that are ending first