#1300
vanilla
The spellcasting menu automatically (by default) assigns letters to spells in a fixed order, rather than alphabetically in the order the player learned them. For instance, ordering by school, then by ascending level, then by name. Or even just in objects.c order. This guarantees that unless the player rearranges the menu, they will always have the same letters from game to game.