Skip to main content

How to sort <CMS_INCLUDE_OPTIONS type="database">

Comments

1 comment

  • Zendesk API User
    Author: Peter_Jodeleit - 12/18/2013 10:30

    cs_location (value type of CheckboxEditorValue) is a set and "sort" isn't supported for this datatype. You have to transform it to a list first. E.g. like this: [] + cs_location (i.e. adding all elements of the set to an empty list). The result than could be sorted: ([] + cs_location).sort(..)

    tl;dr

    Sort is only supported for lists.

    0

Please sign in to leave a comment.