set  = sort_menu() in line 51 to ensure functionality of sort menu funtion