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