Skip to content

Commit 383ce33

Browse files
📚 docs(README): Update code sample.
1 parent b144d91 commit 383ce33

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,13 @@ Iterable sorting for JavaScript.
55
See [docs](https://iterable-iterator.github.io/sorted/index.html).
66

77
```js
8+
import {increasing} from '@total-order/primitive';
9+
import {sorted} from '@iterable-iterator/sorted';
10+
sorted(increasing, [3, 1, 2]); // 1 2 3
11+
812
import {decreasing} from '@total-order/primitive';
913
import {range} from '@iterable-iterator/range';
10-
import {sorted} from '@iterable-iterator/sorted';
11-
sorted(decreasing, range(13)); 12 11 10 9 8 ...
14+
sorted(decreasing, range(13)); // 12 11 10 9 8 ...
1215
```
1316

1417
[![License](https://img.shields.io/github/license/iterable-iterator/sorted.svg)](https://raw.githubusercontent.com/iterable-iterator/sorted/main/LICENSE)

0 commit comments

Comments
 (0)