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