Commit 47218be4 authored by Robert Czechowski's avatar Robert Czechowski

Order contests by positionalnumber

parent df6c85a6
Pipeline #395 passed with stage
in 8 minutes and 15 seconds
......@@ -725,7 +725,7 @@ impl MedalConnection for Connection {
let query = "SELECT id, location, filename, name, duration, public, start_date, end_date, min_grade, max_grade,
positionalnumber
FROM contest
ORDER BY id";
ORDER BY positionalnumber";
self.query_map_many(query, &[], |row| Contest { id: Some(row.get(0)),
location: row.get(1),
filename: row.get(2),
......
......@@ -821,7 +821,7 @@ impl MedalConnection for Connection {
let query = "SELECT id, location, filename, name, duration, public, start_date, end_date, min_grade, max_grade,
positionalnumber
FROM contest
ORDER BY id";
ORDER BY positionalnumber";
self.query_map_many(query, &[], |row| Contest { id: Some(row.get(0)),
location: row.get(1),
filename: row.get(2),
......
......@@ -808,7 +808,7 @@ impl MedalConnection for Connection {
let query = "SELECT id, location, filename, name, duration, public, start_date, end_date, min_grade, max_grade,
positionalnumber
FROM contest
ORDER BY id";
ORDER BY positionalnumber";
self.query_map_many(query, &[], |row| Contest { id: Some(row.get(0)),
location: row.get(1),
filename: row.get(2),
......
......@@ -821,7 +821,7 @@ impl MedalConnection for Connection {
let query = "SELECT id, location, filename, name, duration, public, start_date, end_date, min_grade, max_grade,
positionalnumber
FROM contest
ORDER BY id";
ORDER BY positionalnumber";
self.query_map_many(query, &[], |row| Contest { id: Some(row.get(0)),
location: row.get(1),
filename: row.get(2),
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment