Sort old-to-new

This commit is contained in:
Peter Stuifzand 2018-03-28 00:13:17 +02:00
parent b1dd42b3ca
commit 53cb4ff4bc

View File

@ -183,7 +183,7 @@ func (b *memoryBackend) TimelineGet(after, before, channel string) microsub.Time
sort.Slice(items, func(a, b int) bool {
timeA, _ := items[a]["published"].(string)
timeB, _ := items[b]["published"].(string)
return strings.Compare(timeA, timeB) > 0
return strings.Compare(timeB, timeA) > 0
})
return microsub.Timeline{