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?

  • Lars Krogh Reinholdt 7 posts 87 karma points
    Oct 10, 2023 @ 19:36
    Lars Krogh Reinholdt
    0

    Hi,

    Did you ever find a solution for this?

    I'm experiencing the same problem but can't find a solution anywhere.

    As I see it, the sorting in the list view is pretty useless when it can't be used to sort data.

Please Sign in or register to post replies

Write your reply to:

Draft