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 fba532b commit 4ff2c4fCopy full SHA for 4ff2c4f
api-service/database/exadata.go
@@ -256,7 +256,9 @@ func (md *MongoDatabase) FindAllExadataInstances(hidden bool) ([]model.OracleExa
256
condition = bson.D{{Key: "hidden", Value: hidden}}
257
}
258
259
- pipeline := append(getExadataInstancePipeline, bson.D{{Key: "$match", Value: condition}})
+ pipeline := append(getExadataInstancePipeline,
260
+ bson.D{{Key: "$match", Value: condition}},
261
+ bson.D{{Key: "$sort", Value: bson.D{{Key: "hostname", Value: 1}}}})
262
263
cur, err := md.Client.Database(md.Config.Mongodb.DBName).Collection(exadataCollection).
264
Aggregate(ctx, pipeline)
0 commit comments