From 064b5f2b2c143ad7c9f7601cfdf03cf6b48f07ce Mon Sep 17 00:00:00 2001 From: Sam Reed Date: Wed, 2 Feb 2011 14:26:12 +0000 Subject: [PATCH] Fixup fixme on r81198, explicitally ORDER BY qc_value ASC if not doing DESC --- includes/QueryPage.php | 2 ++ 1 file changed, 2 insertions(+) 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', -- 2.20.1