apologies for the two tickets, I can't seem to edit the first one.
Patch requires one more hunk:

---
+++
@@ -106,11 +106,11 @@
                                }
                        }
                }

                foreach pkg [array names pkgdata] {
-                       set pkgdata($pkg) [lsort -decreasing -dictionary $pkgdata($pkg)]
+                       set pkgdata($pkg) [lsort -decreasing -command vcompare $pkgdata($pkg)]
                }

                array set extDependencies [list]
                foreach extension $extensions {
                        set extension [file tail $extension]