Can we apply OrderBy on any field in NAV Services?

SadaqatSadaqat Member Posts: 1
edited 2020-09-09 in NAV Tips & Tricks
I am fetching data on scrolling in a table. On each scroll it fetches 100 records. Now i want to apply sorting on each field so that when user click on a specific heading it sort data on fetch data on scroll. Issue what i am getting is sorting with scrolling is working fine for Date values and Invoice numbers but not working on other field. Do we need to set sorting parameters from NAV for each field or i am doing something wrong due to which i am unable to sort for other columns?
filteredCustList = client.ReadMultipleAsync(filterArray.ToArray(), Key, 100).Result.ReadMultiple_Result1.OrderBy(s => s.OrderDate).ToList();
Sign In or Register to comment.