We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f86df75 commit 09b5013Copy full SHA for 09b5013
service/age_group_service.go
@@ -27,7 +27,7 @@ func getAgeGroupsByBsonDocument(d primitive.D) ([]model.AgeGroup, error) {
27
defer cancel()
28
29
queryOptions := options.FindOptions{}
30
- queryOptions.SetSort(bson.D{{"min_age", 1}})
+ queryOptions.SetSort(bson.D{{"min_age", -1}})
31
32
cursor, err := ageGroupCollection.Find(ctx, d, &queryOptions)
33
if err != nil {
0 commit comments