Zum Hauptinhalt gehen

How to sort <CMS_INCLUDE_OPTIONS type="database">

Kommentare

1 Kommentar

  • 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

Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.