diff options
author | Steve Manuel <nilslice@gmail.com> | 2016-10-18 13:54:00 -0700 |
---|---|---|
committer | Steve Manuel <nilslice@gmail.com> | 2016-10-18 13:54:00 -0700 |
commit | af2f86df243709bc46ba079eb78aabc15b20866d (patch) | |
tree | 3d09d09002fdf634bd7ece3c81e42a31c32a08a5 /system/db/init.go | |
parent | 030d3eb0fc6e2cb22d7ba7c1cf1744592deebbf4 (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.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/system/db/init.go b/system/db/init.go index 58bb773..d035510 100644 --- a/system/db/init.go +++ b/system/db/init.go @@ -33,6 +33,8 @@ func Init() { if err != nil { return err } + + go SortContent(t + "_sorted") } // init db with other buckets as needed |