Index: trunk/extensions/Translate/utils/MessageGroupStats.php |
— | — | @@ -204,11 +204,18 @@ |
205 | 205 | |
206 | 206 | # Go over each language filling missing entries |
207 | 207 | $languages = array_keys( Language::getLanguageNames( false ) ); |
| 208 | + // This is for calculating things in correct order |
| 209 | + sort( $languages ); |
208 | 210 | foreach ( $languages as $code ) { |
209 | 211 | if ( isset( $stats[$id][$code] ) ) continue; |
210 | 212 | $stats[$id][$code] = self::forItemInternal( $stats, $group, $code ); |
211 | 213 | } |
212 | 214 | |
| 215 | + // This is for sorting the values added later in correct order |
| 216 | + foreach ( array_keys( $stats ) as $key ) { |
| 217 | + ksort( $stats[$key] ); |
| 218 | + } |
| 219 | + |
213 | 220 | return $stats; |
214 | 221 | } |
215 | 222 | |