From e28b55e8e321ac96fe1f3d1b90b9eea41c993566 Mon Sep 17 00:00:00 2001 From: hyunwoo jo Date: Thu, 12 Sep 2024 00:22:31 +0900 Subject: [PATCH] docs: example sort (#282) --- src/sort.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sort.ts b/src/sort.ts index e972618e..2197441e 100644 --- a/src/sort.ts +++ b/src/sort.ts @@ -11,7 +11,7 @@ import type ReturnValueType from "./types/ReturnValueType"; * @example * ```ts * sort((a, b) => a > b, [3, 4, 1, 2, 5, 2]); // [1, 2, 2, 3, 4, 5] - * sort((a, b) => a > b, 'bcdaef); // ["a", "b", "c", "d", "e", "f"] + * sort((a, b) => a.localeCompare(b), "bcdaef"); // ["a", "b", "c", "d", "e", "f"] * ``` */ // prettier-ignore