Sort docs by date in docs list and user view