sort the order history by complete date