Title: Result box sorting
Last modified: January 7, 2026

---

# Result box sorting

 *  Resolved [ojkosznicki](https://wordpress.org/support/users/ojkosznicki/)
 * (@ojkosznicki)
 * [4 months, 4 weeks ago](https://wordpress.org/support/topic/result-box-sorting/)
 * Hello there
 * I’m running a small motorsport league. I use jersey numbers for car numbers, 
   and “technically” everyone is in the same team for tables/stats purposes.
 * However, when I try to put the race results with **Finished **position beeing
   main criteria, both Result and Box Score are making very weird sorting.
 * I can hide results, and use only Box Score but can I set up which column is default
   sorting initially?
 * Adding drivers one by one does not help, because as soon the new one is added,
   they are reordered.
 * Is there a way to actually fix that?
 * It’s weird that even Golf got it’s modification but motorsport doesn’t have one
   🙂
 * Other than that, plugin looks really promising
    -  This topic was modified 4 months, 4 weeks ago by [ojkosznicki](https://wordpress.org/support/users/ojkosznicki/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fresult-box-sorting%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 7 replies - 1 through 7 (of 7 total)

 *  Plugin Contributor [Savvas](https://wordpress.org/support/users/savvasha/)
 * (@savvasha)
 * [4 months, 4 weeks ago](https://wordpress.org/support/topic/result-box-sorting/#post-18777813)
 * Hi there [@ojkosznicki](https://wordpress.org/support/users/ojkosznicki/) ,
 * Can you share some more details about your settings and your configuration? Some
   screenshots will help, especially from SportsPress->Configure->Table Columns
 * Also, are you using any shortcode to show the results of the event?
 * Ordering is mainly used for Table Columns and not results, so probably thats 
   why you are facing this strange behaviour.
 * Thanks,
   Savvas
 *  Thread Starter [ojkosznicki](https://wordpress.org/support/users/ojkosznicki/)
 * (@ojkosznicki)
 * [4 months, 4 weeks ago](https://wordpress.org/support/topic/result-box-sorting/#post-18777873)
 * That’s how I’ve set it up as for now.
   Didn’t use table columns as well.
 * ![](https://wordpress.org/ad0fec8d-4e6d-4c46-8866-1195531c699b)
 * ![](https://wordpress.org/c5e1c7ff-e68f-47aa-85ea-9315b2057f54)
 *  Thread Starter [ojkosznicki](https://wordpress.org/support/users/ojkosznicki/)
 * (@ojkosznicki)
 * [4 months, 4 weeks ago](https://wordpress.org/support/topic/result-box-sorting/#post-18777879)
 * [https://ibb.co/prW3mQ73](https://ibb.co/prW3mQ73)
   [https://ibb.co/sp0373ym](https://ibb.co/sp0373ym)
   [https://ibb.co/jPXwfmJT](https://ibb.co/jPXwfmJT)
 *  Thread Starter [ojkosznicki](https://wordpress.org/support/users/ojkosznicki/)
 * (@ojkosznicki)
 * [4 months, 4 weeks ago](https://wordpress.org/support/topic/result-box-sorting/#post-18777916)
 * Also, what is the character of data within any tables?
   Both calendar, driver 
   list etc.
 * I’ve tried to CSS all the headings, or whole body, but it does not apply for 
   me.
 *  Plugin Contributor [Savvas](https://wordpress.org/support/users/savvasha/)
 * (@savvasha)
 * [4 months, 3 weeks ago](https://wordpress.org/support/topic/result-box-sorting/#post-18778595)
 * Hi there [@ojkosznicki](https://wordpress.org/support/users/ojkosznicki/) ,
 * Try to add the following code to your child’s theme `functions.php` file or otherwise.
   I assume that the key of “Finished” performance is `finished`. If not, please
   change it accordingly. That way your results will be sorted by Finished value
   in ascending order.
 *     ```wp-block-code
       add_filter( 'sportspress_event_performance_players', function( $data, $lineups, $subs, $mode ) {    // Sort by 'finished' performance metric (assuming that's the key)    if ( isset( $data[0]['finished'] ) || isset( reset( $data )['finished'] ) ) {        uasort( $data, function( $a, $b ) {            $a_finished = isset( $a['finished'] ) ? (int) $a['finished'] : 999;            $b_finished = isset( $b['finished'] ) ? (int) $b['finished'] : 999;            return $a_finished <=> $b_finished; // Ascending order        } );    }    return $data;}, 10, 4 );
       ```
   
 * Thanks,
   Savvas
 *  Thread Starter [ojkosznicki](https://wordpress.org/support/users/ojkosznicki/)
 * (@ojkosznicki)
 * [4 months, 3 weeks ago](https://wordpress.org/support/topic/result-box-sorting/#post-18782106)
 * That did work perfectly, thanks a lot [@savvasha](https://wordpress.org/support/users/savvasha/)!
 * Last question, cause I can’t find the proper attribute to change the font of 
   item in the table.
 * Tried all H1-H6, tried “body” but still can’t make the table use the Oswald font
   as well.
 *  Plugin Contributor [Savvas](https://wordpress.org/support/users/savvasha/)
 * (@savvasha)
 * [4 months, 3 weeks ago](https://wordpress.org/support/topic/result-box-sorting/#post-18782881)
 * It depends what you are trying to change. For example you can try the following
   to change the color of “Results” to red and the background to bisque:
 *     ```wp-block-code
       .sp_event h4.sp-table-caption {    color: red !important;    background: bisque !important;}
       ```
   
 * To change the color of background and the font at the header of the table you
   can try something like:
 *     ```wp-block-code
       .sp-data-table th {    background: yellow !important;    color: black !important;}
       ```
   
 * Similar with the rest of the content (just try to use `td` instead of `th`)
 * Thanks,
   Savvas

Viewing 7 replies - 1 through 7 (of 7 total)

You must be [logged in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fresult-box-sorting%2F%3Foutput_format%3Dmd&locale=en_US)
to reply to this topic.

 * ![](https://ps.w.org/sportspress/assets/icon-256x256.png?rev=1252005)
 * [SportsPress - Sports Club & League Manager](https://wordpress.org/plugins/sportspress/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/sportspress/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/sportspress/)
 * [Active Topics](https://wordpress.org/support/plugin/sportspress/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/sportspress/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/sportspress/reviews/)

 * 7 replies
 * 2 participants
 * Last reply from: [Savvas](https://wordpress.org/support/users/savvasha/)
 * Last activity: [4 months, 3 weeks ago](https://wordpress.org/support/topic/result-box-sorting/#post-18782881)
 * Status: resolved