WPIntell

Source evidence

Result box sorting

SportsPress – Sports Club & League Manager · support · 2026-01-07T08:34:00+00:00

mixedsentiment
mediumseverity
0.85relevance
7replies
Evidence linked to opportunitycommercial context

Proof Health

Open evidence

Commercial opportunities need traceable source links before they are treated as build-worthy.

7 / 34 rows with source links

20.6% of this page's analysis has direct source links.

0 build-decision rows missing links

0 rows here require auditable proof before promotion.

27 rows with no attached evidence

0 rows have source counts but still need direct links.

Conversation

support
ojkosznicki resolved
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, 3 weeks ago by ojkosznicki . The page I need help with: [ log in to see the link] Hi there @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 That’s how I’ve set it up as for now. Didn’t use table columns as well. https://ibb.co/prW3mQ73 https://ibb.co/sp0373ym https://ibb.co/jPXwfmJT 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. Hi there @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. 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 That did work perfectly, thanks a lot @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. 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: .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: .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

Comments

7 shown
Savvas 2026-01-07T14:33:00+00:00

Hi there @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

ojkosznicki 2026-01-07T15:24:00+00:00

That’s how I’ve set it up as for now. Didn’t use table columns as well.

ojkosznicki 2026-01-07T15:28:00+00:00

https://ibb.co/prW3mQ73 https://ibb.co/sp0373ym https://ibb.co/jPXwfmJT

ojkosznicki 2026-01-07T15:52:00+00:00

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.

Savvas 2026-01-08T06:16:00+00:00

Hi there @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. 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

ojkosznicki 2026-01-11T16:11:00+00:00

That did work perfectly, thanks a lot @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.

Savvas 2026-01-12T12:02:00+00:00

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: .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: .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