Sorting characters, inventory items, guis, dialogs and rooms when compiling the lists in IGame, so not to break getting them by ID in the game.