Merge "Follow-up Ia16e19985: Fix table sort arrow direction"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Mon, 14 Mar 2016 13:18:28 +0000 (13:18 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Mon, 14 Mar 2016 13:18:28 +0000 (13:18 +0000)
resources/src/jquery/jquery.tablesorter.js

index 2318b33..50bfa87 100644 (file)
                                        $.data( table, 'tablesorter', { config: config } );
 
                                        // Get the CSS class names, could be done elsewhere
-                                       sortCSS = [ config.cssDesc, config.cssAsc ];
+                                       sortCSS = [ config.cssAsc, config.cssDesc ];
+                                       // Messages tell the the user what the *next* state will be
+                                       // so are in reverse order to the CSS classes.
                                        sortMsg = [ mw.msg( 'sort-descending' ), mw.msg( 'sort-ascending' ) ];
 
                                        // Build headers