Changeset 2065
- Timestamp:
- 11/10/2015 01:29:07 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/translate.wordpress.org/includes/gp-plugins/wporg-stats-overview.php
r2064 r2065 116 116 117 117 // Sort by Percent Complete, secondly by Slug 118 uksort( $translation_locale_complete, function ( $a, $b ) use ( $translation_locale_complete ) {118 uksort( $translation_locale_complete, function ( $a, $b ) use ( $translation_locale_complete, $translation_locale_statuses ) { 119 119 if ( $translation_locale_complete[ $a ] < $translation_locale_complete[ $b ] ) { 120 120 return 1; 121 121 } elseif ( $translation_locale_complete[ $a ] == $translation_locale_complete[ $b ] ) { 122 return strnatcmp( $a, $b ); 122 if ( $translation_locale_statuses[ $a ]['waiting'] != $translation_locale_statuses[ $b ]['waiting'] ) { 123 return strnatcmp( $translation_locale_statuses[ $a ]['waiting'], $translation_locale_statuses[ $b ]['waiting'] ); 124 } else { 125 return strnatcmp( $a, $b ); 126 } 123 127 } else { 124 128 return -1;
Note: See TracChangeset
for help on using the changeset viewer.