public async Task AddOrder() { LCQuery <LCObject> query = new LCQuery <LCObject>("Account"); query.AddAscendingOrder("balance"); query.AddDescendingOrder("createdAt"); ReadOnlyCollection <LCObject> results = await query.Find(); for (int i = 0; i + 1 < results.Count; i++) { LCObject a1 = results[i]; LCObject a2 = results[i + 1]; int b1 = (int)a1["balance"]; int b2 = (int)a2["balance"]; Assert.IsTrue(b1 < b2 || a1.CreatedAt.CompareTo(a2.CreatedAt) >= 0); } }