Skip to content

Commit

Permalink
Merge pull request #1738 from diego-plan9/querysort
Browse files Browse the repository at this point in the history
Documentation update: followup to #1736, fix typo on inline.rst
  • Loading branch information
sampsyo committed Nov 26, 2015
2 parents 155727a + 47ceb49 commit cd687e7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/plugins/inline.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ it, you can define template fields in your beets configuration file and refer
to them from your template strings in the ``paths:`` section (see
:doc:`/reference/config/`).

To use the `ìnline`` plugin, enable it in your configuration
To use the ``inline`` plugin, enable it in your configuration
(see :ref:`using-plugins`).
Then, make a `item_fields:`` block in your config file. Under this key, every line defines a
Then, make a ``item_fields:`` block in your config file. Under this key, every line defines a
new template field; the key is the name of the field (you'll use the name to
refer to the field in your templates) and the value is a Python expression or
function body. The Python code has all of a track's fields in scope, so you can
Expand Down
4 changes: 4 additions & 0 deletions docs/reference/query.rst
Original file line number Diff line number Diff line change
Expand Up @@ -261,5 +261,9 @@ sort order: ``Bar foo Qux``. This behavior can be changed with the
result in lower-case values being placed after upper-case values, e.g.,
``Bar Qux foo``.

Note that when sorting by fields that are not present on all items (such as
flexible fields, or those defined by plugins) in *ascending* order, the items
that lack that particular field will be listed at the *beginning* of the list.

You can set the default sorting behavior with the :ref:`sort_item` and
:ref:`sort_album` configuration options.

0 comments on commit cd687e7

Please sign in to comment.