diff --git a/modules/system/classes/VersionManager.php b/modules/system/classes/VersionManager.php index 995be302a..13b34e973 100644 --- a/modules/system/classes/VersionManager.php +++ b/modules/system/classes/VersionManager.php @@ -391,6 +391,12 @@ class VersionManager } $historyInfo = Db::table('system_plugin_history')->where('code', $code)->get(); + + if (is_array($historyInfo)) { + usort($historyInfo, function ($a, $b) { + return version_compare($a->version, $b->version); + }); + } return $this->databaseHistory[$code] = $historyInfo; }