Reverse sort
Mark documents as pinned in the pin lists