solve_univariate_inequality shouldn't assume solve output is sorted

closes #2785