adjustments to version sort
diff --git a/content/downloads.ezmd b/content/downloads.ezmd
index 21e4121..bdf6fe9 100644
--- a/content/downloads.ezmd
+++ b/content/downloads.ezmd
@@ -3,13 +3,13 @@
# Releases
+[[]KEYS]([{openoffice-keys}])
+
[for openoffice]
## Version [openoffice.version]
[for openoffice.release]
-* [[][openoffice.release.release](https://downloads.apache.org/openoffice/[openoffice.version]/[openoffice.release.release])
+* [[][openoffice.release.release]](https://downloads.apache.org/openoffice/[openoffice.version]/[openoffice.release.release])
- [[]signature](https://dist.apache.org/repos/dist/openoffice/[openoffice.version]/[openoffice.release.signature])
- [[]checksum](https://dist.apache.org/repos/dist/openoffice/[openoffice.version]/[openoffice.release.checksum])
[end]
[end]
-
-[[]KEYS]([{openoffice-keys}])
diff --git a/theme/plugins/asfdata.py b/theme/plugins/asfdata.py
index f664ce7..08bc96b 100644
--- a/theme/plugins/asfdata.py
+++ b/theme/plugins/asfdata.py
@@ -440,7 +440,9 @@
for version in each_version:
each_version[version].sort(key=lambda x: (-x.revision, x.release))
distributions.append( Version(version=version,
+ revision=each_version[version][0].revision,
release=each_version[version]))
+ distributions.sort(key=lambda x: (-x.revision, x.version))
return keys, distributions