diff options
| author | Paul Buetow <paul@buetow.org> | 2025-02-02 10:49:09 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2025-02-02 10:49:09 +0200 |
| commit | 456e4bc57f56735709828472a9762e4572c65791 (patch) | |
| tree | 78e9be19763274dbc458c5ca8c12e837d3369168 | |
| parent | bee6c6beafe33810e57be4670f4654f413e15190 (diff) | |
swap
| -rw-r--r-- | lib/template.source.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/template.source.sh b/lib/template.source.sh index 963b272..c93b66e 100644 --- a/lib/template.source.sh +++ b/lib/template.source.sh @@ -106,12 +106,12 @@ template::inline::_index () { # Can be used from a .gmi.tpl template for generating an index for a given topic. template::inline::index () { - template::inline::_index $@ | sort -r | uniq + template::inline::_index $@ | sort | uniq } # Same as index, but reverse order template::inline::rindex () { - template::inline::_index $@ | sort | uniq + template::inline::_index $@ | sort -r | uniq } # TODO: Write unit test. |
