| commit | 35cc8926d48286abe0dcce7cc62675989033adeb | [log] [tgz] |
|---|---|---|
| author | Dennis Huebner <dennis.huebner@itemis.de> | Thu Aug 14 11:13:52 2014 +0200 |
| committer | Dennis Huebner <dennis.huebner@itemis.de> | Thu Aug 14 11:13:52 2014 +0200 |
| tree | 3a8747b8bed4a769237f56db67247f273a700bdf | |
| parent | 0629a2b1093b02b4a3012010dc2df06021e405f8 [diff] |
natural order of download dirs: 2.10 > as 2.9.2 case
diff --git a/includes/downloads-scripts.php b/includes/downloads-scripts.php index 6d970ab..357dd70 100755 --- a/includes/downloads-scripts.php +++ b/includes/downloads-scripts.php
@@ -60,6 +60,9 @@ global $PWD, $sortBy; $branchDirs = loadDirSimple($PWD, ".*", "d"); + // Sort branch dirs by version i.e. 2.10.0 > 2.9.2 + natsort($branchDirs); + $buildDirs = array(); foreach ($branchDirs as $branch)