sort notes collection docs by last_modified