api, frontend, db: add comment sorting

Closes https://gitlab.com/commento/commento/issues/215
This commit is contained in:
Adhityaa Chandrasekar committed 2019-12-04 18:50:50 -08:00
1 parent 3101af8a5c
commit 3e1576d494
9 files changed
+185 -27

No files matched your search

+10
View File
@@ -0,0 +1,10 @@
-- Default sort policy for each domain
CREATE TYPE sortPolicy AS ENUM (
'score-desc',
'creationdate-desc',
'creationdate-asc'
);
ALTER TABLE domains
ADD defaultSortPolicy sortPolicy NOT NULL DEFAULT 'score-desc';