summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2017-11-18 19:53:08 +0100
committeremkael <emkael@tlen.pl>2017-11-18 19:53:08 +0100
commit2a566a80ca3cec4914965696ab29c2f12bac899c (patch)
tree2612890cd01631839735b834e0ef3b7380f5da7d
parent8cda79bab92e0b6cf06a6b270662e13ea6a7ad30 (diff)
Ordering Pary names by pair ID
-rw-r--r--Aktywator/ParyTournament.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Aktywator/ParyTournament.cs b/Aktywator/ParyTournament.cs
index 2ee7243..0c9209f 100644
--- a/Aktywator/ParyTournament.cs
+++ b/Aktywator/ParyTournament.cs
@@ -31,7 +31,7 @@ namespace Aktywator
override internal Dictionary<int, List<string>> getNameList()
{
Dictionary<int, List<String>> pairs = new Dictionary<int, List<string>>();
- MySqlDataReader dbData = this.mysql.select("SELECT idp, CONCAT(imie, ' ', nazw) name FROM zawodnicy");
+ MySqlDataReader dbData = this.mysql.select("SELECT idp, CONCAT(imie, ' ', nazw) name FROM zawodnicy ORDER BY idp");
while (dbData.Read())
{
int pairNo = dbData.GetInt32(0);