changed sorting of date