Vinay | #1384 Ensure ordering takes place by visit start date