summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/context/base/publ-sor.lua
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2015-05-14 22:53:14 +0000
committerKarl Berry <karl@freefriends.org>2015-05-14 22:53:14 +0000
commit6802edd7b9deb224cdc3aff2e65d0e71962bc0d2 (patch)
tree52a67c8f13afc517c2ac2bccaae73a3a21db93e1 /Master/texmf-dist/tex/context/base/publ-sor.lua
parent1ee321247aa1b6b740e44a83ac872e0caa34abcf (diff)
context/14may15
git-svn-id: svn://tug.org/texlive/trunk@37401 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/context/base/publ-sor.lua')
-rw-r--r--Master/texmf-dist/tex/context/base/publ-sor.lua9
1 files changed, 9 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/context/base/publ-sor.lua b/Master/texmf-dist/tex/context/base/publ-sor.lua
index ba353a9bcc4..b617af760e3 100644
--- a/Master/texmf-dist/tex/context/base/publ-sor.lua
+++ b/Master/texmf-dist/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 = "" },
+-- },
+-- }