Making WordPress.org

Changeset 461


Ignore:
Timestamp:
03/06/2014 05:02:51 AM (13 years ago)
Author:
nacin
Message:

Trac Notifications: Naturally sort ticket followers.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/trac-notifications/trac-notifications.php

    r458 r461  
    267267                $unblocked_participants = array_diff( $participants, $ticket_subscriptions['blocked'] );
    268268                $all_receiving_notifications = array_unique( array_merge( $stars, $unblocked_participants ) );
    269                 sort( $all_receiving_notifications );
     269                natcasesort( $all_receiving_notifications );
    270270
    271271                $reasons = array();
     
    335335                                        <div class="star-list">
    336336                                <?php
    337                                         foreach ( $stars as $follower ) :
     337                                        natcasesort( $stars ); foreach ( $stars as $follower ) :
    338338                                        // foreach ( $all_receiving_notifications as $follower ) :
    339339                                                if ( $username === $follower ) {
Note: See TracChangeset for help on using the changeset viewer.