diff --git a/.env.sample b/.env.sample
index d3a6c5d..5c9144c 100644
--- a/.env.sample
+++ b/.env.sample
@@ -4,13 +4,13 @@
# see the schema and the column names. Some fields are compound and not visible
# directly from the schema (joins). You can check the query in the */list.sql files
# in the source to see all column names.
-# The usual syntax for those variables is
. [ASC|DESC].
+# The usual syntax for those variables is ""."" [ASC|DESC].
# For composite fields (CASE, SUM, COUNT) the syntax is , there is no name.
# For instance:
-# - table.name (by table.name, default order)
-# - table.name ASC (by table.name, ascending)
-# - table.name DESC (by table.name, descending)
-# - field (by field, default order)
+# - "table"."name" (by "table"."name", default order)
+# - "table"."name" ASC (by "table"."name", ascending)
+# - "table"."name" DESC (by "table"."name", descending)
+# - "field" (by "field", default order)
# - ...
# You can combine the ordering options.
# You can use the special column name 'rowid' to order by insertion order.
@@ -117,10 +117,10 @@
# Optional: Change the default order of minifigures. By default ordered by insertion order.
# Useful column names for this option are:
-# - minifigures.fig_num: minifigure ID (fig-xxxxx)
-# - minifigures.name: minifigure name
-# Default: minifigures.name ASC
-# BK_MINIFIGURES_DEFAULT_ORDER=minifigures.name ASC
+# - "minifigures"."fig_num": minifigure ID (fig-xxxxx)
+# - "minifigures"."name": minifigure name
+# Default: "minifigures"."name" ASC
+# BK_MINIFIGURES_DEFAULT_ORDER="minifigures"."name" ASC
# Optional: Folder where to store the minifigures images, relative to the '/app/static/' folder
# Default: minifigs
@@ -134,12 +134,13 @@
# Optional: Change the default order of parts. By default ordered by insertion order.
# Useful column names for this option are:
-# - inventory.part_num: part number
-# - inventory.name: part name
-# - inventory.color_name: par color name
-# - total_missing: number of missing parts
-# Default: inventory.name ASC, inventory.color_name ASC, is_spare ASC
-# BK_PARTS_DEFAULT_ORDER=total_missing DESC, inventory.name ASC
+# - "inventory"."part_num": part number
+# - "inventory"."name": part name
+# - "inventory"."color_name": part color name
+# - "inventory"."is_spare": par is a spare part
+# - "total_missing": number of missing parts
+# Default: "inventory"."name" ASC, "inventory"."color_name" ASC, "inventory"."is_spare" ASC
+# BK_PARTS_DEFAULT_ORDER="total_missing" DESC, "inventory"."name" ASC
# Optional: Folder where to store the parts images, relative to the '/app/static/' folder
# Default: parts
diff --git a/bricktracker/sql/minifigure/list/all.sql b/bricktracker/sql/minifigure/list/all.sql
index 480eb67..a00f474 100644
--- a/bricktracker/sql/minifigure/list/all.sql
+++ b/bricktracker/sql/minifigure/list/all.sql
@@ -4,7 +4,7 @@
SUM(IFNULL("missing_join"."total", 0)) AS "total_missing",
{% endblock %}
-{% block "total_quantity" %}
+{% block total_quantity %}
SUM(IFNULL("minifigures"."quantity", 0)) AS "total_quantity",
{% endblock %}