$this->addWhere( 'pl_title' . $db->buildLike( $this->titlePartToKey( $params['prefix'] ), $db->anyString() ) );
}
- $this->addFields( array(
- 'pl_title',
- ) );
+ $this->addFields( 'pl_title' );
$this->addFieldsIf( 'pl_from', !$params['unique'] );
$this->addOption( 'USE INDEX', 'pl_namespace' );
$this->addOption( 'LIMIT', $limit + 1 );
if ( !$params['unique'] ) {
- $this->addOption( 'ORDER BY', 'pl_from' );
+ $this->addOption( 'ORDER BY', 'pl_title, pl_from' );
}
$res = $this->select( __METHOD__ );
if ( $params['unique'] ) {
$this->addOption( 'GROUP BY', 'ar_title' );
} else {
- $this->addOption( 'ORDER BY', 'ar_timestamp' );
+ $this->addOption( 'ORDER BY', 'ar_title, ar_timestamp' );
}
} else {
if ( $mode == 'revs' ) {