Allows choosing sort direction in generic UI.