I am not able to get glass to return items sorted correctly.
I have this code.
var options = new GetItemsByQueryOptions(new Query($"<mypath>/*"));
var myitems= this.contentRepository.GetItems<IMyType>(options)?.ToList();
It returns the correct items but not in the order they are sorted in the tree.
This code returns the items sorted as expected.
Sitecore.Context.Database.GetItems("mypath").ToList()
I found a post on here where it was said Glass returns the same order the Sitecore API does. The below API call does not return sorted so I assume Mike was talking about the above what which leaves me confused by Glass is not returning them sorted.
Sitecore.Context.Database.SelectItems("myquery").ToList()
I am on Glass 5.4