summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--library/package.tcl2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/package.tcl b/library/package.tcl
index 52801e6..c30431c 100644
--- a/library/package.tcl
+++ b/library/package.tcl
@@ -399,7 +399,7 @@ proc pkg_mkIndex {args} {
break
}
lappend cmd ::tcl::Pkg::Create -name $name -version $version
- foreach spec $files($pkg) {
+ foreach spec [lsort -index 0 $files($pkg)] {
foreach {file type procs} $spec {
if {$direct} {
set procs {}