Index: trunk/extensions/SemanticMediaWiki/includes/SMW_QueryProcessor.php |
— | — | @@ -186,7 +186,7 @@ |
187 | 187 | |
188 | 188 | // If more sort arguments are provided then properties, assume the first one is for the page. |
189 | 189 | // TODO: we might want to add errors if there is more then one. |
190 | | - if ( !empty( $orders ) ) { |
| 190 | + if ( !array_key_exists( '', $sortKeys ) && !empty( $orders ) ) { |
191 | 191 | $sortKeys[''] = array_shift( $orders ); |
192 | 192 | } |
193 | 193 | |