summaryrefslogtreecommitdiff
path: root/tex/context/base/publ-sor.lua
diff options
context:
space:
mode:
Diffstat (limited to 'tex/context/base/publ-sor.lua')
-rw-r--r--tex/context/base/publ-sor.lua9
1 files changed, 9 insertions, 0 deletions
diff --git a/tex/context/base/publ-sor.lua b/tex/context/base/publ-sor.lua
index ba353a9bc..b617af760 100644
--- a/tex/context/base/publ-sor.lua
+++ b/tex/context/base/publ-sor.lua
@@ -74,6 +74,8 @@ return function(dataset,list,method) -- indexer
local index = tostring(i)
local entry = luadata[tag]
if entry then
+ -- maybe optional: if entry.key then push the keygetter
+ -- in slot 1 and ignore (e.g. author)
local detail = details[tag]
result[i] = {
index = i,
@@ -366,3 +368,10 @@ end
table.setmetatableindex(sorters,function(t,k) return anything end)
publications.lists.sorters = sorters
+
+-- publications.sortmethods.key = {
+-- sequence = {
+-- { field = "key", default = "", unknown = "" },
+-- { field = "index", default = "", unknown = "" },
+-- },
+-- }