Fix player list sorting issue
This commit is contained in:
@@ -733,6 +733,6 @@ class SP_Player_List extends SP_Custom_Post {
|
||||
endforeach; endif;
|
||||
|
||||
// Default sort by number
|
||||
return sp_array_value( $a, 'number', 0 ) - sp_array_value( $b, 'number', 0 );
|
||||
return floatval( sp_array_value( $a, 'number', 0 ) ) - floatval( sp_array_value( $b, 'number', 0 ) );
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user