Open Jokder opened 5 years ago
Hi, for my first release there is no plans yet for ThenBy. If you have all fields in same order, you can sort a new array:
.OrderBy(“[Name,Age]”)
This .OrderBy(x => new object[] { x.Name, x.Age })
seems to work as well, for those who prefer expression syntax. But I am still scared to face a scenario where I would need to order two columns in different order. 😨
hello david Just i used collection.Query().OrderBy(),but i found there's no Thenby supported now,My application target machine has poor memory,so i really like love now litedb can use linq OrderBy on disk,I hope litedb will support Thenby,thanks for your time.