fixed some date issues, added sorting on client (it's already in api)