Sort both requests views by score then id

master
Dessa Simpson 2020-07-03 23:28:41 -07:00
parent d55d1d1abe
commit 5e596167e4
1 changed files with 2 additions and 2 deletions

View File

@ -1,5 +1,5 @@
CREATE VIEW requests_vw AS CREATE VIEW requests_vw AS
SELECT * FROM requests WHERE state = 'Requested' ORDER BY score DESC, id DESC; SELECT * FROM requests WHERE state = 'Requested' ORDER BY score DESC, id ASC;
CREATE VIEW requests_all_vw AS CREATE VIEW requests_all_vw AS
SELECT * FROM requests ORDER BY id DESC; SELECT * FROM requests ORDER BY score DESC, id ASC;