Added code to make cleaner so added prompt into sort menu option.