static function singleton() {
if ( !self::$instance ) {
global $wgCategoryCollation;
static function singleton() {
if ( !self::$instance ) {
global $wgCategoryCollation;
* Given a string, convert it to a (hopefully short) key that can be used
* for efficient sorting. A binary sort according to the sortkeys
* corresponds to a logical sort of the corresponding strings. Current
* Given a string, convert it to a (hopefully short) key that can be used
* for efficient sorting. A binary sort according to the sortkeys
* corresponds to a logical sort of the corresponding strings. Current
* Do a binary search, and return the index of the largest item that sorts
* less than or equal to the target value.
*
* Do a binary search, and return the index of the largest item that sorts
* less than or equal to the target value.
*
*
* @return The item index of the lower bound, or false if the target value
* sorts before all items.
*
* @return The item index of the lower bound, or false if the target value
* sorts before all items.