moved sorting of data on date from client to server
Merge https://github.com/sanu767/irro