updated for version 7.0163
diff --git a/runtime/autoload/htmlcomplete.vim b/runtime/autoload/htmlcomplete.vim
index bd138e6..806eb52 100644
--- a/runtime/autoload/htmlcomplete.vim
+++ b/runtime/autoload/htmlcomplete.vim
@@ -463,7 +463,7 @@
 
 	let tags = g:xmldata_xhtml10s[opentag][0]
 
-	for m in tags
+	for m in sort(tags)
 		if m =~ '^'.context
 			call add(res, m)
 		elseif m =~ context