mirror of
https://github.com/mm201/pkmn-classic-framework.git
synced 2026-04-24 07:16:48 -05:00
Sort rankings properly.
This commit is contained in:
parent
80f358afed
commit
7c0cbb8d5e
|
|
@ -2867,7 +2867,7 @@ namespace PkmnFoundations.Data
|
|||
}
|
||||
|
||||
var tblLeaderboard = tran.ExecuteDataTable("SELECT " + teamColumnName + " AS Team, Score FROM " + tableName +
|
||||
" WHERE report_id = @report_id AND RecordType = @record_type AND " + teamBetween,
|
||||
" WHERE report_id = @report_id AND RecordType = @record_type AND " + teamBetween + " ORDER BY Score DESC",
|
||||
new MySqlParameter("@report_id", reportId),
|
||||
new MySqlParameter("@record_type", recordType));
|
||||
|
||||
|
|
@ -2943,7 +2943,7 @@ namespace PkmnFoundations.Data
|
|||
"ON pkmncf_terminal_trainer_rankings_records.pid = pkmncf_terminal_trainer_rankings_teams.pid " +
|
||||
"WHERE pkmncf_terminal_trainer_rankings_records.LastUpdated >= @start_date " +
|
||||
"AND RecordType = @record_type AND " + teamBetween +
|
||||
" GROUP BY Team",
|
||||
" GROUP BY Team ORDER BY Score DESC",
|
||||
new MySqlParameter("@record_type", recordType),
|
||||
new MySqlParameter("@start_date", startDate));
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user