Add Sorting option, adding Get_input function