Fixing the sort order and formatting for dates in user details