Skip to content

Commit 6b0408f

Browse files
authored
Sorted themes/packages dropdown in ascending order (#2967)
1 parent b1a6176 commit 6b0408f

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

app/code/core/Mage/Core/Model/Design/Source/Design.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,12 +71,15 @@ public function getAllOptions($withEmpty = true)
7171
'value' => $package . '/' . $theme
7272
];
7373
}
74+
asort($themeOptions);
7475
$packageOption['value'] = $themeOptions;
7576
$options[] = $packageOption;
7677
}
7778
$this->_options = $options;
7879
}
7980
$options = $this->_options;
81+
asort($options);
82+
8083
if ($withEmpty) {
8184
array_unshift($options, [
8285
'value' => '',

phpstan.dist.baseline.neon

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6710,6 +6710,11 @@ parameters:
67106710
count: 1
67116711
path: app/code/core/Mage/Shipping/Model/Tracking/Result.php
67126712

6713+
-
6714+
message: "#^Call to an undefined method Zend_Db_Adapter_Abstract\\:\\:getCheckSql\\(\\)\\.$#"
6715+
count: 1
6716+
path: app/code/core/Mage/Sitemap/Model/Resource/Catalog/Abstract.php
6717+
67136718
-
67146719
message: "#^Method Mage_Tag_Model_Resource_Tag_Collection\\:\\:addPopularity\\(\\) invoked with 2 parameters, 0\\-1 required\\.$#"
67156720
count: 1

0 commit comments

Comments
 (0)