Skip to content

Commit

Permalink
add names example to readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Jomula committed Dec 17, 2021
1 parent 06beaf1 commit 3ca3abe
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 @@ -13,8 +13,10 @@ A simple and expandable extension for JavaScript's sort() method to provide an i
import uniSort from 'unisort';

const alphabetUnsorted = ['A','B','ط','D','ا'];
const namesUnsorted = ['Alfred', 'Ben', 'طارق', 'Daniel', 'احمد', 'Yvonne'];

uniSort(alphabetUnsorted) // ['A','ا','B','D','ط']
uniSort(alphabetUnsorted) // ['A', 'ا', 'B', 'D', 'ط']
uniSort(namesUnsorted) // ['احمد', 'Alfred', 'Ben', 'Daniel', 'طارق', 'Yvonne']
```

## Test
Expand Down

0 comments on commit 3ca3abe

Please sign in to comment.