This is my schema:
let ORDER = new Schema({
playername:String,
serverUID:String,
amount: Number,
ADMIN_UID: String,
status: Boolean,
objid:Array,
})
I need to sort by ServerUID, then sort by objid and status is true, then calculate each amount. pls help me! I really don't know how to work with data!
this is my first time asking question on the platform, if I have some ignored and impolite please forgive me!