sort mongo driver golang stack overlaw code example
Example: find options mongo golang order by field
findOptions := options.Find()
// Sort by `price` field descending
findOptions.SetSort(bson.D{{"price", -1}})
db.Collection("products").Find(nil, bson.D{}, findOptions)