Index: trunk/extensions/SemanticDrilldown/specials/SD_BrowseData.php |
— | — | @@ -724,14 +724,15 @@ |
725 | 725 | // so return page_title as title. |
726 | 726 | $sql = "SELECT DISTINCT p.page_title AS title, |
727 | 727 | p.page_title AS value, |
728 | | - p.page_namespace AS namespace "; |
| 728 | + p.page_namespace AS namespace, |
| 729 | + c.cl_sortkey AS sortkey "; |
729 | 730 | $sql .= $this->getSQLFromClause($this->category, $this->subcategory, $this->all_subcategories, $this->applied_filters); |
730 | 731 | return $sql; |
731 | 732 | } |
732 | 733 | |
733 | | - function sortDescending() { |
734 | | - return false; |
735 | | - } |
| 734 | + function getOrder() { |
| 735 | + return ' ORDER BY sortkey '; |
| 736 | + } |
736 | 737 | |
737 | 738 | function formatResult($skin, $result) { |
738 | 739 | $title = Title::makeTitle( $result->namespace, $result->value ); |
— | — | @@ -768,7 +769,7 @@ |
769 | 770 | for ($i = 0; $i < $num && $row = $dbr->fetchObject( $res ); $i++) { |
770 | 771 | $line = $this->formatResult( $skin, $row ); |
771 | 772 | if ($line) { |
772 | | - $cur_first_char = $row->value{0}; |
| 773 | + $cur_first_char = $row->sortkey{0}; |
773 | 774 | if ($i % $rows_per_column == 0) { |
774 | 775 | $html[] = "<div style=\"float: left; width: $column_width%;\">\n"; |
775 | 776 | if ($cur_first_char == $prev_first_char) |