Fixed bug in OrderComparator