rename receiver and loop variables
move sort into template; call it SortByString