This is a python program that recursively sorts Safari bookmarks in ascending order. Folder are kept at top followed by individual bookmarks. Since there are no public APIs to work with bookmarks, writing it as a Safari Extension has no advantage. A simple script should do. The script sorts the bookmarks from the bookmarks file. Having a backup before applying sort would be a good choice. The source code is at GitHub.
x
{musings}