Fixed Unstable sort for extension_hint.php

Xon

Well-known member
Affected version
2.3.3
When extension_hint.php is exported, the sorting can be unstable from install-to-install.

This is because the query lacks needs a sort clause on the more clauses. Ideally this should sort by from_class and then to_class
PHP:
	public function getExtensionCacheFileValue($addOnId)
	{
		$finder = \XF::finder(ClassExtensionFinder::class)
			->where('addon_id', $addOnId)
			->order('to_class');
		$extensions = $finder->fetch();
 
Thank you for reporting this issue, it has now been resolved. We are aiming to include any changes that have been made in a future XF release (2.3.5).

Change log:
Fix unstable sort order for class extension output
There may be a delay before changes are rolled out to the XenForo Community.
 
Back
Top Bottom