diff --git a/_layouts/docindex.html b/_layouts/docindex.html
--- a/_layouts/docindex.html
+++ b/_layouts/docindex.html
@@ -10,9 +10,9 @@
{% for version in page.versions %}
{{ version }} |
- {% assign rpccommand = site.doc | where:"version",version | where:"category","rpc" | first %}
+ {% assign rpccommand = site.doc | where:"version",version | where:"category","rpc" | sort:"name.help","last" | first %}
{% if rpccommand %}RPC documentation{% endif %} |
- {% assign manpage = site.doc | where:"version",version | where:"category","man" | first %}
+ {% assign manpage = site.doc | where:"version",version | where:"category","man" | sort:"name.bitcoind","last" | first %}
{% if manpage %}Man pages{% endif %} |
{% endfor %}