changes: Reversed ordering in result.
the build was successful

This commit is contained in:
2018-12-05 21:00:52 +01:00
parent 2711654816
commit f7f0b76379
+1 -1
View File
@@ -16,7 +16,7 @@ var submitMutex sync.Mutex
func list(query bson.M, limit int) ([]models.Change, error) {
changes := make([]models.Change, 0, 64)
err := collection.Find(query).Limit(limit).Sort("date").All(&changes)
err := collection.Find(query).Limit(limit).Sort("-date").All(&changes)
return changes, err
}