Event order should be descending for streak calculation

This commit is contained in:
Brian Miyaji
2015-09-28 14:32:45 +10:00
parent de203a1c6f
commit 5a53a078c7
2 changed files with 2 additions and 2 deletions

View File

@@ -179,7 +179,7 @@ class SP_League_Table extends SP_Custom_Post{
'numberposts' => -1,
'posts_per_page' => -1,
'orderby' => 'post_date',
'order' => 'ASC',
'order' => 'DESC',
'meta_query' => array(
array(
'key' => 'sp_format',

View File

@@ -201,7 +201,7 @@ class SP_Player_List extends SP_Custom_Post {
'post_type' => 'sp_event',
'numberposts' => -1,
'posts_per_page' => -1,
'order' => 'ASC',
'order' => 'DESC',
'meta_query' => array(
array(
'key' => 'sp_format',