From: Sam Reed Date: Wed, 2 Feb 2011 14:26:12 +0000 (+0000) Subject: Fixup fixme on r81198, explicitally ORDER BY qc_value ASC if not doing DESC X-Git-Tag: 1.31.0-rc.0~32256 X-Git-Url: https://git.cyclocoop.org/%7B%7B%20url_for%28?a=commitdiff_plain;h=064b5f2b2c143ad7c9f7601cfdf03cf6b48f07ce;p=lhc%2Fweb%2Fwiklou.git Fixup fixme on r81198, explicitally ORDER BY qc_value ASC if not doing DESC --- diff --git a/includes/QueryPage.php b/includes/QueryPage.php index 4cf039dc45..9078e63e7e 100644 --- a/includes/QueryPage.php +++ b/includes/QueryPage.php @@ -409,6 +409,8 @@ abstract class QueryPage extends SpecialPage { } if ( $this->sortDescending() ) { $options['ORDER BY'] = 'qc_value DESC'; + } else { + $options['ORDER BY'] = 'qc_value ASC'; } $res = $dbr->select( 'querycache', array( 'qc_type', 'qc_namespace AS namespace',