Sort both requests views by score then id

This commit is contained in:
Dessa Simpson 2020-07-03 23:28:41 -07:00
parent d55d1d1abe
commit 5e596167e4

View file

@ -1,5 +1,5 @@
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
SELECT * FROM requests ORDER BY id DESC;
SELECT * FROM requests ORDER BY score DESC, id ASC;