summaryrefslogtreecommitdiff
path: root/system/db/init.go
diff options
context:
space:
mode:
authorSteve Manuel <nilslice@gmail.com>2016-10-18 14:00:42 -0700
committerSteve Manuel <nilslice@gmail.com>2016-10-18 14:00:42 -0700
commitb73b8b065ca85fda4500eb0a4eeba9a0c6e71292 (patch)
treee7578667713cf1dee36e812ffdd390b0c83b4a4e /system/db/init.go
parent1edc64094e71a199e8c6774a274b2ae791183223 (diff)
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
Diffstat (limited to 'system/db/init.go')
-rw-r--r--system/db/init.go2
1 files changed, 1 insertions, 1 deletions
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)
}
}()