Switched ordering of max-min date to min-max for ranges