Order pinned notes.
Revert sort pinned notes (unstable), make sorting faster (hack).