Added sort to option list.

Changes:
- Adds support for sort option.
- Sort format is `{ fieldPath: 'asc', otherFieldPath: 'desc' }`