ractive.sort()

The Ractive equivalent to Array.sort sorts the array at the given keypath and triggers an update event.

ractive.sort( keypath )

Returns a Promise (see Promises) that will resolve after the update is complete.

keypath String

The keypath of the array to sort, e.g. list or order.items.

If the given keypath does not resolve to an array, an error will be thrown.