Making WordPress.org

Changeset 1837


Ignore:
Timestamp:
08/19/2015 04:48:07 AM (8 years ago)
Author:
dd32
Message:

Translate: Tweak the defalt sort orders, it should be by the number of waiting strings, not alphabetically.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/translate.wordpress.org/includes/gp-plugins/wporg-routes/routes/locale.php

    r1835 r1837  
    445445                // Float Favorites to the start, float fully translated to the bottom, order the rest by name
    446446                if ( $user_fav_projects ) {
    447                     $filter_order_by = 'FIELD( tp.path, "' . implode( '", "', $user_fav_projects ) . '" ) > 0 AND stats.untranslated > 0 DESC, stats.untranslated > 0 DESC, tp.name ASC';
     447                    $filter_order_by = 'FIELD( tp.path, "' . implode( '", "', $user_fav_projects ) . '" ) > 0 AND stats.untranslated > 0 DESC, stats.untranslated > 0 DESC, stats.untranslated DESC, tp.name ASC';
    448448                } else {
    449                     $filter_order_by = 'stats.untranslated > 0 DESC, tp.name ASC';
     449                    $filter_order_by = 'stats.untranslated > 0 DESC, stats.untranslated DESC, tp.name ASC';
    450450                }
    451451                break;
Note: See TracChangeset for help on using the changeset viewer.