Forums

Forums / General Discussions / List view widget not sorting data according to sort statement in Fetch

List view widget not sorting data according to sort statement in Fetch

2 posts, 1 answered
  1. Mike Cohen
    Mike Cohen avatar
    31 posts
    Registered:
    10 Aug 2021
    10 Jul 2023
    Link to this post
    Hello,  I have a list view widget that shows data with a date field called "new_starttime".  I've configured my fetchxml to have a sort statement and when I run the fetch xml behind the list view through the fetchxml tester the returned records are sorted, however the listview does not obey this sort. 

    Are there any other settings to get a list view to sort based on a date field other than putting the sort statement into the fetchxml? 
  2. Rawdon Edghill
    Rawdon Edghill avatar
    76 posts
    Registered:
    16 Dec 2020
    Answered
    11 Jul 2023
    Link to this post
    Hi Mike,

    I would recommend to validate the custom code implemented in the ListView widget template. 

    Review if there are any command or instructions that are applying an ordering in the list retrieved from the fetch.

    Regards,
    Rawdon
2 posts, 1 answered