1.4  Sort (Alphabetize)

       Topics on this Page

1.4.1  Sorting means “Putting in Alphanumeric Order”

Unfortunately, the word “sort” has two similar meanings in English:

In BookMacster, Sort employs the first meaning, in particular, to arrange items in alpha-numeric order.  Our Engineering Department wanted to use a less ambiguous term, orderize or alphanumericalize, but our English Department hit the roof upon hearing of that proposal.  Since order is ambiguous also (being both a noun and a verb), we decided to go with our Marketing Department’s recommendation and call it sort, like other apps do.  Oh, well.  Sometimes style and culture must triumph over technology.

1.4.2  Sorting Boundaries

Sorting never moves items from their current folder; it only re-orders items within folders that are sorted.  Also, sorting will not move items across a separator.

1.4.3  When Sorting is done

Sorting is done when you click in the menu BookmarkshelfSort All.  It is also done when a BookMacster Agent is triggered to perform its commands.  Sorting is not done when you set the will be sorted or sort this folder attribute of an folder; that only sets it up for sorting the next time that sorting is done.

1.4.4  Which Items are Sorted

In the Main Content View, a folder’s icon indicates whether or not it is set to be sorted the next time that sorting occurs.  BookMacster provides several mechanisms by which you can these settings.

Setting Individual Folders Explicitly

For the most fine-grained control, you may set explicitly whether or not individual folders will be sorted.  To do this, select the folder and then either

Bookmarkshelf-Wide Settings

There are more general settings in the Settings ▸ Sorting tab of a Bookmarkshelf.

Sort the Root

The Bookmarkshelf has an implicit root folder, the parent of all items.  Some Clients accept and display the order in which BookMacster exports the items in root, and therefore whether or not the root is sorted makes a difference.  Since the root item does not appear in the Main Content View, it cannot be selected and set explicitly as described above.  The Sort the Root checkbox provides this function.

For folders not explicitly set…

Since you would not want to explicitly set the “Do” or “Don’t” sort attribute on hundreds or thousands of folders, the three radio buttons at the bottom allow you to set default values for these attributes.

1.4.5  Specifying Sort Order

BookMacster provides several several settings by which you can specify the order in which a Bookmarkshelf’s folders are sorted.

Forcing Items ↑ ↓

Content items have a Sort at… attribute which you may edit to Top, Bottom or Normally (the default setting).  Setting this attribute to Sort at Top will add an attribute to the selected item(s) which will cause them to be sorted to the top of their folder, regardless of their name.  Sort at Bottom is similar, for the bottom.  Sort Normally sets it to be sorted in normal alphanumeric order.

The Sort at Top and Sort at Bottom values are only available if you have set your your Sort by setting for this document to sort by name, because otherwise these tags would have no effect.

The Sort at… attribute can be set by selecting the item and clicking the desired setting in the Selection menu, in some contextual menus or, like all attributes, in the Inspector Panel.

Ignoring Prefixes

A checkbox in a Bookmarkshelf’s Settings ▸ Sorting tells BookMacster that you want certain prefixes, for example “The ” or “Home Page of ” to be ignored.

This checkbox is only enabled when bookmarks are sorted by name.

If you check this box, BookMacster will look at the prefixes in the list given in Preferences ▸ Sorting, and ignore these prefixes if they are found at the beginnings of names when sorting bookmarks by name.  (Note that, because the list is in the BookMacster application preferences, it applies to all Bookmarkshelves.)

For example, the entry A in the list will cause a bookmark named A Big Bad Hockey Team to be sorted with other bookmarks whose names begins with B instead of those whose names begin with A.

Checking the box at the end of an entry tells BookMacster to append a space character to the entry. This is usually desired; otherwise, for example, entering the word “A” would cause the name “Apple” to appear with names beginning with the letter p. However, it is not usually desired when omitting a url-type prefix, such as “http://www”, as indicated in the default prefixes. (You could get the same effect by putting a space after the entry, but the checkbox is easier to see and understand.)

This feature can lead to unexpected results if more than one prefix in the list matches a name!  If one prefix “contains” another, you should put the longer one first, because BookMacster parses the list from top to bottom.

Sort by…

Although items are normally sorted by name, BookMacster can also sort by URL, according to a Bookmarkshelf Setting…

by name

When you add a bookmark to a site in a web browser, you are prompted to give it a name. The default name is the title of the page which is provided by the site. For example, the title of Apple’s iTunes page is “Apple - iTunes”.  The name is also what appears in the Bookmarks Menu.  Most people use this default option.

by entire URL

The entire url (uniform resource locator) is the “address” which appears in Safari’s address bar, for example “http://www.apple.com/itunes”.  Note that this method sorts firstly by the scheme, which is the first “word” in the url, which in this example is “http”. This method will typically sort with all “ftp” bookmarks first, then all “http”, then all “https:”.

by domain, host, path

If you choose domain, host, path, BookMacster reverses the URL, sorting firstly using the top-level domain (TLD). If the TLDs are the same, it then sorts by 2nd-level domain, then 3rd-level domain, then 4th-level domain, etc.

If BookMacster finds more than one bookmark in a subfolder with the same host, it then parses the path to determine the order among them. (The path identifies the file on the remote host which is sent when you click on the bookmark.)

There may be other keys following the path, such as password and query. BookMacster ignores these other keys.

If you have not been giving good names to your bookmarks, you may want to sort by domain, host, path until you get things straightened out.

Folders ↑↓ Bookmarks

At the bottom of SettingsSorting is a control which can set folders to be sorted above bookmarks, or vice versa…

This attribute is only editable when bookmarks are sorted by name.

Here is an example of a folder sorted with Folders above Bookmarks:

Here is the same folder sorted mixed:

Here is the same folder sorted with Bookmarks above Folders:

1.4.6  Keeping bookmarks sorted automatically

To keep your bookmarks in a client web browser such as Safari sorted automatically, you need to add the browser as a Client, and then switch on an Agent.

If you are also using BookMacster to keep bookmarks synced among different web browser Clients, the same BookMacster Agent can keep your bookmarks sorted.  This is true whether you are only syncing client browsers on one Mac or syncing across multiple Macs.  Simply switch on the Sort checkbox number 2.

In the very simple case of only one web browser Client on one Mac, SettingsAgents should look like this…

1.4.7  Web Apps Cannot be Sorted

Locally-installed web browsers such as Safari store bookmarks in the order in which you (or BookMacster) arrange them.  However, web apps such as Delicious do not.  Therefore, exporting sorted bookmarks BookMacster to a web app does not affect the order in which the web app will display them when you log into your account in their web app.