Updated sort test to check for proper date sorting.