Skip to content

Commit

Permalink
Doc: Remove duplicates
Browse files Browse the repository at this point in the history
  • Loading branch information
q2s2t committed Jul 31, 2014
1 parent 6e407ef commit 94aa7d6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,15 @@ var results = sort(data, options);
```

* `ignore_stages`: *(default: `false`)* Only return stables versions and ignore
staged versions. `[ '1.1', '1.1alpha' ]` will return `[ '1.1' ]`.
staged versions.
Example:
```js
var results = sort([ '1.1', '1.1alpha' ], { ignore_stages: true });
// [ '1.1' ]
```

* `nested`: *(default: `false`)* Use this option to sort object by a field.
Example:
```js
var softwares = [ { version: '1.1' }, { version: '1.1alpha' } ];
var results = sort(softwares, { nested: 'version' });
Expand Down

0 comments on commit 94aa7d6

Please sign in to comment.