Finden Sie Optionen Mongo Golang Order nach Feld

findOptions := options.Find()
// Sort by `price` field descending
findOptions.SetSort(bson.D{{"price", -1}})


db.Collection("products").Find(nil, bson.D{}, findOptions)
Splendid-est Swan