limit(max, property, ascending)
Limit a collection to the specified number of elements, optionally sorting them by a specified property first.
Returns the limited collection.
Arguments:
this:collection (Collection):
The Collection instance.
max (Number):
The number to limit the collection to.
property (String, optional):
The property to sort by, if sorting.
ascending (Boolean, optional):
Whether to sort in ascending or descending order. The default is true (ascending).
Returns: Collection