diff options
-rw-r--r-- | system/db/content.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/system/db/content.go b/system/db/content.go index 970d5de..5e0a1df 100644 --- a/system/db/content.go +++ b/system/db/content.go @@ -208,6 +208,8 @@ func ContentAll(namespace string) [][]byte { func SortContent(namespace string) { all := ContentAll(namespace) + fmt.Println(all) + var posts sortablePosts post := content.Types[namespace]() // decode each (json) into Editable @@ -230,7 +232,7 @@ func SortContent(namespace string) { fmt.Println("------------------------NOW SORTED------------------------") // sort posts - sort.Sort(posts) + sort.Sort(&posts) for i := range posts { fmt.Printf("%v\n", posts[i]) |