From 37b46e8da7eecf1a1adccd878466f23923a121af Mon Sep 17 00:00:00 2001 From: Oleg Silkin Date: Fri, 31 May 2019 22:05:12 -0400 Subject: [PATCH] timestamp order by ascending > order by descending --- schema/comments_ddl.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/schema/comments_ddl.sql b/schema/comments_ddl.sql index 183cbe9..76f5c6d 100644 --- a/schema/comments_ddl.sql +++ b/schema/comments_ddl.sql @@ -42,7 +42,7 @@ CREATE VIEW IF NOT EXISTS COMMENTS_ON_CLAIMS (comment_id, claim_id, timestamp, c SELECT C.CommentId, C.LbryClaimId, C.Timestamp, CHAN.Name, CHAN.ClaimId, 'lbry://' || CHAN.Name || '#' || CHAN.ClaimId, C.Signature, C.ParentId, C.Body FROM COMMENT AS C LEFT OUTER JOIN CHANNEL CHAN on C.ChannelId = CHAN.ClaimId - ORDER BY C.Timestamp; + ORDER BY C.Timestamp DESC;