Sorting snippets, adding links