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 []]) {
  _fields.addAll(fields.map((SortField.parse)));
}