From 3e8ad7e467aca6d69b93034e4f168b74cab7c5a7 Mon Sep 17 00:00:00 2001 From: Charles Haley <> Date: Thu, 22 Mar 2012 09:38:39 +0100 Subject: [PATCH] Add documentation for series_sort() template function. --- src/calibre/manual/template_lang.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/src/calibre/manual/template_lang.rst b/src/calibre/manual/template_lang.rst index 0f6b912418..782673ce16 100644 --- a/src/calibre/manual/template_lang.rst +++ b/src/calibre/manual/template_lang.rst @@ -298,6 +298,7 @@ The following functions are available in addition to those described in single-f * ``or(value, value, ...)`` -- returns the string "1" if any value is not empty, otherwise returns the empty string. This function works well with test or first_non_empty. You can have as many values as you want. * ``print(a, b, ...)`` -- prints the arguments to standard output. Unless you start calibre from the command line (``calibre-debug -g``), the output will go to a black hole. * ``raw_field(name)`` -- returns the metadata field named by name without applying any formatting. + * ``series_sort()`` -- returns the series sort value. * ``strcat(a, b, ...)`` -- can take any number of arguments. Returns a string formed by concatenating all the arguments. * ``strcat_max(max, string1, prefix2, string2, ...)`` -- Returns a string formed by concatenating the arguments. The returned value is initialized to string1. `Prefix, string` pairs are added to the end of the value as long as the resulting string length is less than `max`. String1 is returned even if string1 is longer than max. You can pass as many `prefix, string` pairs as you wish. * ``strcmp(x, y, lt, eq, gt)`` -- does a case-insensitive comparison x and y as strings. Returns ``lt`` if x < y. Returns ``eq`` if x == y. Otherwise returns ``gt``.