summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Manuel <nilslice@gmail.com>2016-10-18 11:40:22 -0700
committerSteve Manuel <nilslice@gmail.com>2016-10-18 11:40:22 -0700
commita6ccdf38a16fa6663f1e510a7645700e722c9c3a (patch)
tree95f24a94d60fe4463e3c876a67296ce6cb0b3823
parent7eff6ff00d8c80e5c9d5eb123e91bbe798e42898 (diff)
debugging
-rw-r--r--system/db/content.go4
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])