I’ve encountered problems with sorting and executeQueryLocally().
Some examples:
- Sorting on a property with a name of “Group” does work:
.orderBy("Group"); - Sorting on a property with a name of “Name” does NOT work:
.orderBy("Name");In this case, no error is raised but the array is not sorted. - Sorting on both “Group and Name” does work:
.orderBy("Group, Name"); - Sorting on any of the above with “desc” does NOT work:
.orderBy("Group desc");
In this case, an error like the following is raised:Object Group1 has no method 'getProperty'
Unfortunately I haven’t had a chance to debug the comparer to see what’s going on.
The “orderBy” clause with a “desc” qualification is now fixed in v 0.73.5, available either via nuget or on the breeze website.