3

This works for ascending.

vars.results orderBy (results) -> results.name

but can't figure out how to sort descending by name

1 Answers1

5

Try this:

(vars.results orderBy (results) -> results.name)[-1 to 0]
George
  • 2,758
  • 12
  • 16