From b73b8b065ca85fda4500eb0a4eeba9a0c6e71292 Mon Sep 17 00:00:00 2001 From: Steve Manuel Date: Tue, 18 Oct 2016 14:00:42 -0700 Subject: implement Sort on all content types by Timestamp, DESC (latest to oldest) - run in goroutine on db.Init() as well as any time content is saved via SetContent --- system/db/init.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/db/init.go b/system/db/init.go index 399a1e2..1a5ed25 100644 --- a/system/db/init.go +++ b/system/db/init.go @@ -73,7 +73,7 @@ func Init() { // sort all content into type_sorted buckets go func() { for t := range content.Types { - SortContent(t + "_sorted") + SortContent(t) } }() -- cgit v1.2.3