From 3ca3abee8510759e9598665bb964e9fad7476116 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20M=C3=BCller-Laackman?= Date: Fri, 17 Dec 2021 13:14:49 +0100 Subject: [PATCH] add names example to readme --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 40da055..b14d8c6 100644 --- a/README.md +++ b/README.md @@ -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