Added a new "builtin" function reorder:
reorder(s, [with, without]]) -- Reorder the items in s according to the order given in with and with items mentioned in without removed. Items from s not mentioned in with are removed. s, with, and without are all either sequences if strings or sequences of key-value tuples, with ordering done on the keys. This function is useful for constructing ordered select lists.
Showing
Please register or sign in to comment