summaryrefslogtreecommitdiff
path: root/tex/context/base/sort-ini.lua
diff options
context:
space:
mode:
Diffstat (limited to 'tex/context/base/sort-ini.lua')
-rw-r--r--tex/context/base/sort-ini.lua7
1 files changed, 3 insertions, 4 deletions
diff --git a/tex/context/base/sort-ini.lua b/tex/context/base/sort-ini.lua
index 1091bfbfb..f08ba0e26 100644
--- a/tex/context/base/sort-ini.lua
+++ b/tex/context/base/sort-ini.lua
@@ -423,12 +423,11 @@ local function firstofsplit(entry)
else
split = split.ch
end
+ local first = split and split[1] or ""
if thefirstofsplit then
- return thefirstofsplit(entry,split)
+ return thefirstofsplit(first,data,entry) -- normally the first one is needed
else
- local entry = split and split[1] or ""
- local tag = entries[entry] or "\000"
- return entry, tag
+ return first, entries[first] or "\000" -- tag
end
end