Index: branches/wmf/1.17wmf1/extensions/ArticleFeedback/SpecialArticleFeedback.php |
— | — | @@ -365,7 +365,7 @@ |
366 | 366 | * everyone feels warm and fuzzy about having more 'highs', as |
367 | 367 | * it were... |
368 | 368 | * |
369 | | - * @param array Pre-orderd from lowest to highest |
| 369 | + * @param array Pre-orderd from highest to lowest |
370 | 370 | * @return array Containing the... highest rated article data |
371 | 371 | */ |
372 | 372 | protected function getDailyHighs( $highs_lows ) { |
— | — | @@ -375,7 +375,10 @@ |
376 | 376 | } else { |
377 | 377 | $num_highs = $num_ratings / 2; |
378 | 378 | } |
379 | | - return array_slice( $highs_lows, -$num_highs, $num_highs ); |
| 379 | + $highs = array_slice( $highs_lows, -$num_highs, $num_highs ); |
| 380 | + |
| 381 | + // Sort descending |
| 382 | + return array_reverse( $highs ); |
380 | 383 | } |
381 | 384 | |
382 | 385 | /** |