Finished order query for mock database model by comparator.