From 0ea8d85b7f3a5fbad0bfc95cd4b48ea1a6e6c3df Mon Sep 17 00:00:00 2001 From: EinfachToll Date: Fri, 19 Feb 2016 11:32:58 +0100 Subject: [PATCH] Sort links in the list generated by VimwikiGenerateTags Fix #192 --- autoload/vimwiki/tags.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/vimwiki/tags.vim b/autoload/vimwiki/tags.vim index 79068c1..8c9cc5f 100644 --- a/autoload/vimwiki/tags.vim +++ b/autoload/vimwiki/tags.vim @@ -317,7 +317,7 @@ function! vimwiki#tags#generate_tags(...) abort "{{{ \ '', \ substitute(g:vimwiki_rxH2_Template, '__Header__', tagname, ''), \ '' ]) - for taglink in tags_entries[tagname] + for taglink in sort(tags_entries[tagname]) call add(lines, bullet . \ substitute(g:vimwiki_WikiLinkTemplate1, '__LinkUrl__', taglink, '')) endfor