summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/template.source.sh4
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.