diff options
author | Steve Manuel <nilslice@gmail.com> | 2016-12-06 14:19:56 -0800 |
---|---|---|
committer | Steve Manuel <nilslice@gmail.com> | 2016-12-06 14:19:56 -0800 |
commit | 4d46c0631703483c62c90f084aa559f85705ad61 (patch) | |
tree | 2bfaff2a0333fba79146369a735d5a9641d0b028 /system/db/content.go | |
parent | 9bcd849014d8986e72220dc9d8d02888c3dd7103 (diff) |
/*post?s*/ => /*content?s*/ substitution
Diffstat (limited to 'system/db/content.go')
-rw-r--r-- | system/db/content.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/system/db/content.go b/system/db/content.go index 94d2bad..f313543 100644 --- a/system/db/content.go +++ b/system/db/content.go @@ -387,17 +387,17 @@ func SortContent(namespace string) { } -type sortablePosts []editor.Sortable +type sortableContents []editor.Sortable -func (s sortablePosts) Len() int { +func (s sortableContents) Len() int { return len(s) } -func (s sortablePosts) Less(i, j int) bool { +func (s sortableContents) Less(i, j int) bool { return s[i].Time() > s[j].Time() } -func (s sortablePosts) Swap(i, j int) { +func (s sortableContents) Swap(i, j int) { s[i], s[j] = s[j], s[i] } |