Primitive sorting for bookmarks.py.