ids required default (empty - required)The list of item ids to sort, separated by dashes. Long (32-char) or short ids both work, and you can feed the output of {ids} or another id-producing command straight in. An empty list produces an empty result.
expression optional default publish_date....The AA expression evaluated once per item; its result is that item's sort key. Usually a field alias such as _#NUMBER__ or expression, but any expression works. All ids are compared by this single key.
type optional default numericHow the sort keys are compared. numeric (the default) orders by size; string orders character by character; locale uses the current language's collation. Prefix r for reverse (descending) in each mode.
{foreach:{order:aa89ddc95136b966e6ec1419a2963741-a65d19971986e750761f0efcd9a16b1b-5726c2c6b035d7aab450d1794e9e90d7-ae1da231f3e5bc16496834a0711aa042:_#NUMBER__}:{({item:_##1:_#HEADLINE})}:-:>}
{foreach:{order:aa89ddc95136b966e6ec1419a2963741-a65d19971986e750761f0efcd9a16b1b-5726c2c6b035d7aab450d1794e9e90d7-ae1da231f3e5bc16496834a0711aa042:_#NUMBER__:rnumeric}:{({item:_##1:_#HEADLINE})}:-:>}
{foreach:{order:aa89ddc95136b966e6ec1419a2963741-a65d19971986e750761f0efcd9a16b1b-5726c2c6b035d7aab450d1794e9e90d7-ae1da231f3e5bc16496834a0711aa042:_#NUMBER__:string}:{({item:_##1:_#HEADLINE})}:-:>}
{foreach:{order:fb3df1343ef9a7d789af1f26aa5f8849-a65d19971986e750761f0efcd9a16b1b-ae1da231f3e5bc16496834a0711aa042-aa89ddc95136b966e6ec1419a2963741:_#HEADLINE:string}:{({item:_##1:_#HEADLINE})}:-:>}
{foreach:{order:a65d19971986e750761f0efcd9a16b1b-4f3362a62847fe1f8c59ba28a92d42c0:_#NUMBER__}:{({item:_##1:_#HEADLINE})}:-:>}[{order::_#NUMBER__}]
{foreach:{order:{ids:6a435236626262738348478463536272:d-switch.........1-==-1}:_#SORTKEY_:string}:<option>_#NAME____</option>}