Integer input for sorting