Sorting notes and snippets