added number validation to sort question