142,143c142,143 < array_push( $articles, $sk->makeSizeLinkObj( $x->page_len, $title, $wgContLang->convert( $title->getPrefixedText() ) ) ) ; < array_push( $articles_start_char, $wgContLang->convert( $wgContLang->firstChar( $x->cl_sortkey ) ) ); --- > array_push( $articles, $sk->makeKnownLinkObj( $title ) ) ; > array_push( $articles_start_char, $x->cl_sortkey ) ; 145a146,164 > $root_length = 0; > for ($index = 0 ; $index < count($articles) - 1; $index++){ > if > ($articles_start_char[$index][$root_length]!=$articles_start_char[$index+1][$root_length]) > { > break; > } > else{ > if($index == count($articles) - 2) { > $root_length = $root_length+1; > $index=0; > } > } > } > for ($index = 0 ; $index < count($articles) ; $index++){ > $articles_start_char[$index] = > substr($articles_start_char[$index],0,$root_length+1); > } >