sort data.frame for user-input alphabetically