Sorting and rearranging bookmarks - Firefox
From MozillaZine Knowledge Base
This article explains how to alphabetically sort, organize, or rearrange your Firefox bookmarks.
Sorting bookmarks alphabetically
There are several methods you can use to sort your bookmarks, which are explained below. Note: In Firefox 3 and up you can no longer right-click an individual bookmark to "Sort By Name", you can only do that for folders.
The best way of sorting bookmarks is with the "SortPlaces extension, which although no longer available on the Addons site, can still be found by an Internet search elsewhere. This extension will be mentioned several times relative to different aspects of this article.
If not displayed on toolbars use "Alt": to make toolbars visible, then View (menu) > toolbars > (check) Bookmarks Toolbar.
By including separators to group bookmarks (below) you can allow sorting of the Bookmarks Toolbar but restrict sorting to within each group as bounded by bookmark separators when sorting folders.
Usage tips #simplifying use of the bookmarks toolbar continues below.
(Drop-down bookmark menus, toolbar menus, and bookmarks sidebar)
This is the default folder when adding bookmarks with the bookmark star. There is no reason not to sort this folder, but you would want to add a bookmark separator at the bottom for chronological usage in finding bookmarks created more recently to check later if they should be categorized into folders.
Using an extension to sort bookmarks recursively
Many users prefer an alphabetized list of bookmarks in all folders, even within the Bookmarks Toolbar. You can install the SortPlaces extension to sort all bookmarks folders recursively.
The following are for sorting bookmarks in Firefox 2 (or below), which uses bookmarks.html:
You can use drag-&-drop or cut-&-paste to rearrange your bookmarks or reorganize your bookmarks into different folders.
Instead of Drag-&-Drop you can also use Cut-&-Paste from the context menu (or from the Bookmarks Manager "Edit" menu, or the Library window "Organize" menu). If you want to create a new folder , select "New Folder" from the context menu (or from the Bookmarks Manager "File" menu, or the Library window "Organize" menu).
Firefox 3 and later: (multiple selection) You can select multiple entries without invoking the bookmark for dragging, copying, moving or deleting, (similar to how you can select multiple browsing history items) with use of the Ctrl/Cmd key (to add to a selection) & Shift key (to extend a selection) by clicking to the left of the favicon (webpage icon) in the list to make selection(s). To extend from the last selection made of dis-contiguous entries use Cntr/Cmd+Shift+click. Makes moving several bookmarks from different places to a new location easier. Multiple selection is not available in the drop-down menus, and in Firefox 3 only is not available in left pane of Library List. 
Using separators to group bookmarks
Bookmark separators can be used for a visual separation of bookmarks into groups. Entities are sorted within each group, independently of the other groups when bookmarks are sorted. All of the sorting methods respect bookmark separators to maintain independently sorted groups.
To create a separator, right -click on a bookmark or folder, then choose "New Separator". This can be done from the Bookmarks menu, on or within the bookmarks toolbar, or from "Organize Bookmarks"/"Library List" (Bookmarks Manager using "Views -> Sort -> Unsorted"). Such separators are normally added before the entity selected.
For an obstinate case trying to place a single bookmark separator after a single bookmark and before a folder, you may need to place the separator between two folders and then move the single bookmark before the separator.
Removing a separator can't be done from the Bookmarks menu or drop-downs, but can be done from both the sidebar (Ctrl/Cmd + B) and from "Organize Bookmarks"/"Library List", where the separator is part of a larger space. Right-click on the separator and choose "Delete".
The difference between Firefox 2 and Firefox 3 and later is that, in Firefox 2 sorting, you selected an item within a folder to sort the folder. In Firefox 3, you select the folder to sort items within a folder. Both versions sort everything in the folder that gets sorted. Sorting folders recursively is not available in Firefox 3 at this time.
All sorting explained here is from the context menu, use of column sorting within the Bookmarks Manager in a different view than the normal hierarchy order will not be permanent.
Bookmarks Manager or Library window
Bring up the Bookmarks Manager or Library window ("Bookmarks -> Organize Bookmarks", or Show all Bookmarks" or "Ctrl/Cmd+Shift+B")
Sorting bookmarks in the main portion Library List via the view menu or clicking on column headings is temporary, it does not actually affect bookmarks in any way.
Viewing bookmarks in the Bookmarks Manager or Library window
The left pane of the Bookmarks Manager, is similar to the bookmarks sidebar, but never displays individual bookmarks. The expansion indicators only indicate that there are additional folders inside.
Sorting an individual folder through the context menu will be remembered just as if done sorting a folder elsewhere, such as the bookmarks sidebar
Firefox 3 introduced arrow points replacing the less ambiguous [-] and [+] symbols to collapse or expand a folder, and in Firefox 3 the right pane folders can expanded to bookmark folders within, but not bookmarks. (bug 440119)
The right pane of the Bookmarks Manager or Library window provides a listing that can be sorted by clicking on a column. This does not permanently sort your bookmarks, and only applies within this list (bug 405108). It will not affect the left pane, nor your bookmarks menu, nor your bookmarks toolbar. Multiple-selection is possible in both left and right panes of the Bookmarks Manager in Firefox 2 but only in the right pane of the Library window in Firefox 3 (bug 440119).
When a search is not involved, the right pane displays the folders and bookmarks within folder(s) selected on the left, but in Firefox 3 and later only one folder can be selected on the left and only one level of that folder is displayed. When a search is involved, the right pane displays all of the bookmarks (and only bookmarks) within the folder(s) selected on the left pane. In Firefox 3 after a search has been invoked check the scope of the search in the box below the search box. (bug 440119, bug 424076, bug 469441).
The Library Search box applies to all bookmarks (or all history, but never both bookmarks and history). Starting with Firefox 3.5 you can easily check whether you are searching bookmarks or history by the gray wording in the Library Search box "Sort Bookmarks" or "Sort History". You will see item counts at the bottom of the window after first touching the vertical scroll bar.
In later versions of Firefox 3 and up, searching on any folder is possible, but a bit convoluted under the safer assumption that you probably wanted to search "All Bookmarks".
Columns in Library window
In the Library window, you can click on any column header to sort by that column (click a second time to reverse the order), and you can rearrange columns by dragging the column header. You can view additional columns by right-clicking on a column heading or via the Views menu (Show Columns). In addition to Name and Location, you can also select Visit Date (last) and Visit Count. In addition to the columns shared by Bookmarks and History, there are additional items for bookmarks: Keyword, Tags, Description, Added (date), and Last Modified. The | Show Parent Folder extension provides for a Parent Folder column for bookmarks, unlike the other columns, it is not sortable. The View Menu also allows you to choose the column to be sorted on, even if not visible, and also offers an unsorted order. In Firefox 2, you can click on the icon to the right of the column headings (above the scrollbar) and choose the columns to be shown.
You can rearrange columns dragging a column heading.
Bookmark properties in the Library window
Bookmark properties are displayed at the bottom of the Library window, and can be modified / renamed there. You can not right click on a folder or bookmark to change its properties in the library window as you would in bookmark menus or the bookmarks sidebar.
Can the tags be hidden in the properties window, so only shown if expanded. as annoying as this space waster is haven't found anything yet in userstyles.org yet. (FF2 was certainly better for viewing properties in the Library List).
Finding a forgotten bookmark within a Date Range
To find a bookmark that you know was created within a date range, you have to use the Library List.
Location Bar autocomplete searches
There are modifier prefixes to limit the location-bar autocomplete results to searching for bookmarks ("*"), history ("^"), tags ("+" ) and also for limiting to title ("#"), to url ("@"), as typed ("~"), to tabs other than active tab ("%").  Bug 393574 Bug 393584 Bug 480350 % new in 3.7. See Location Bar search and Changing autocomplete behavior - Firefox for more information on customizing Location Bar autocomplete results.
Simplifying use of the bookmarks toolbar
The bookmarks toolbar spreads across the toolbar and the space here is prime real estate, so you want to see as many items as possible in that space.
Tools for sorting and viewing bookmarks
The following extensions allow you to sort bookmarks in Firefox 3 (and later), which uses places.sqlite:
The following are not directly related to sorting, but sorting can be invoked from within for folders, and these extensions will help you work through the folders hierarchy in your bookmarks:
Addition and/or editing of Bookmarks:
Viewing a folder of Bookmarks with real scrollbars:
Viewing a sorted list of Bookmark Keywords:
Viewing Bookmarks Menu
Addition to Bookmarks Toolbar Menu
Displaying Bookmarks Menu in multiple columns:
Viewing an exported list of bookmarks, bookmarks.html, for searching with Find or for using on another system without making changes on that system.