Sort list and fix toCorrectCase