unit test for dateline
fixing sort