Hi, I have a strange problem ocuring when I try to use OrderBy for any given propery: The ordering is fragmented.
What I mean by that is if I OrderBy on number I get something like: 1, 2, 5, 6, 3, 4, 7, 8, 0 and then 6, 5, 2, 1, 8, 7, 4, 3, 0 for descending. It seams like the result is getting orderd by something else before ordering on the number, but I have triple-checked the request and there is only one sort object in the sort array.
query.OrderBy(arg => arg.Code);
Gives:
[0]: "22565423125" [1]: "22565423216" [2]: "22565423236" [3]: "22565423294" [4]: "22565423130" [5]: "22565423140" [6]: "22565423291" [7]: "22565423297" [8]: "22565423614" [9]: "22565423622" [10]: "22565423627" [11]: "22565423647" [12]: "22565423231" [13]: "22565423285" [14]: "22565423637" [15]: "22565423642" [16]: "22565423120" [17]: "22565423221" [18]: "22565423226" [19]: "22565423288" [20]: "22565423300" [21]: "22565423135" [22]: "22565423211" [23]: "22565423652"
And
query.OrderByDescending(arg => arg.Code);
Gives:
[0]: "22565423236" [1]: "22565423216" [2]: "22565423125" [3]: "22565423115" [4]: "22565423647" [5]: "22565423627" [6]: "22565423622" [7]: "22565423614" [8]: "22565423297" [9]: "22565423291" [10]: "22565423140" [11]: "22565423130" [12]: "22565423642" [13]: "22565423637" [14]: "22565423285" [15]: "22565423231" [16]: "22565423300" [17]: "22565423288" [18]: "22565423226" [19]: "22565423221" [20]: "22565423120" [21]: "22565423652" [22]: "22565423632" [23]: "22565423135"
I have tried switching indexes and still the issue remains.
I'm using Episerver.Find 13.0.1.