diff options
| author | Alexander Gavrilov | 2012-04-22 19:22:00 +0400 |
|---|---|---|
| committer | Alexander Gavrilov | 2012-04-22 19:22:00 +0400 |
| commit | 125cd6622a1d2ce7a8dfa7caf40a85049baf4977 (patch) | |
| tree | 033aa194ef7f969f88a2675337ca9cca2f27cd43 /plugins/lua | |
| parent | 2ef321a2086f03de30d184c06c527f504893cd07 (diff) | |
| download | dfhack-125cd6622a1d2ce7a8dfa7caf40a85049baf4977.tar.gz dfhack-125cd6622a1d2ce7a8dfa7caf40a85049baf4977.tar.bz2 dfhack-125cd6622a1d2ce7a8dfa7caf40a85049baf4977.tar.xz | |
Support sorting units in many more ui contexts.
Diffstat (limited to 'plugins/lua')
| -rw-r--r-- | plugins/lua/sort/units.lua | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/plugins/lua/sort/units.lua b/plugins/lua/sort/units.lua index b92fc6c8..84beff8e 100644 --- a/plugins/lua/sort/units.lua +++ b/plugins/lua/sort/units.lua @@ -4,6 +4,13 @@ local utils = require('utils') orders = orders or {} +-- Relies on NULL being auto-translated to NULL, and then sorted +orders.exists = { + key = function(unit) + return 1 + end +} + orders.name = { key = function(unit) if unit.name.has_name then |
