Fixed comparison to compare by entered order.