Sort both requests views by score then id
parent
d55d1d1abe
commit
5e596167e4
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue