I use System.Linq.Dynamic
to order a MongoDB collection.
mongoCollection.AsQueryable().OrderBy("Name ASC");
But the lowercase names gets ordered after the capital cased names, so the items are returned something like this.
- Ape
- Cat
- Dog
- alligator
- ant
- beetle
I rather expected this:
- alligator
- ant
- Ape
- beetle
- Cat
- Dog
Is there a way to get the correct order?