Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Robin 6 posts 86 karma points
    Feb 20, 2020 @ 10:48
    Robin
    0

    How to add more sorting columns

    Hi, I have a collection that I would like to sort by "Release date". I have added "Release date" to my list view, but still I can't use it to sort my data.

    See screenshots

    Thanks

    Missing Column List view

  • Robin 6 posts 86 karma points
    Feb 20, 2020 @ 15:36
    Robin
    0

    Hi again,

    A follow up question on sorting list data in Heartcore.

    How can I control the order of the items coming back, when using "byContentType" & "filter"?

    client.delivery.content.filter(body, options)
    // FAIL: items are not sorted by "sortOrder"
    
    client.delivery.content.byContentType('type', options)
    // SUCCESS: items are sorted by "sortOrder"
    

    Right now, the "sortOrder" is not respected when using "filter". How can I fix this?

Please Sign in or register to post replies

Write your reply to:

Draft