Sort constructor

Sort([
  1. Iterable<String> fields = const []
])

The fields arguments is the list of sorting criteria.

Example:

Sort(['-created', 'title']);

Implementation

Sort([Iterable<String> fields = const []]) {
  _.addAll(fields.map((SortField.parse)));
}