summaryrefslogtreecommitdiff
path: root/system/db/content.go
diff options
context:
space:
mode:
authorSteve Manuel <nilslice@gmail.com>2016-12-06 14:21:16 -0800
committerSteve Manuel <nilslice@gmail.com>2016-12-06 14:21:16 -0800
commit054f01662788fb3bb7fd2808980e59c3a918e9e3 (patch)
treeb656c6696d404143388d102b7957b709eb8680ad /system/db/content.go
parent4d46c0631703483c62c90f084aa559f85705ad61 (diff)
/*post?s*/ => /*content?s*/ substitution
Diffstat (limited to 'system/db/content.go')
-rw-r--r--system/db/content.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/system/db/content.go b/system/db/content.go
index f313543..ef74091 100644
--- a/system/db/content.go
+++ b/system/db/content.go
@@ -334,7 +334,7 @@ func SortContent(namespace string) {
all := ContentAll(namespace)
- var posts sortablePosts
+ var posts sortableContent
// decode each (json) into type to then sort
for i := range all {
j := all[i]
@@ -387,17 +387,17 @@ func SortContent(namespace string) {
}
-type sortableContents []editor.Sortable
+type sortableContent []editor.Sortable
-func (s sortableContents) Len() int {
+func (s sortableContent) Len() int {
return len(s)
}
-func (s sortableContents) Less(i, j int) bool {
+func (s sortableContent) Less(i, j int) bool {
return s[i].Time() > s[j].Time()
}
-func (s sortableContents) Swap(i, j int) {
+func (s sortableContent) Swap(i, j int) {
s[i], s[j] = s[j], s[i]
}