Added some fixes to ordered trip dates management.