Best way to do this would be to read each of the items in the file and write them back out recursively. (Might have to create a duplicate of the file first).
Or even better, someone could write this in C++ and include it as a permanent feature in the next release! (ie. Sort order option on the Bookmarks menu)
Any volunteers??
![Smile :)](./images/smilies/icon_smile.gif)