Removed punch_row and cast_sorts function which were used by only one function, respectively. Renamed sorts_menu to cast_sorts.