From 2761f8490bdff19a24e58b3ac9872ef35f39720b Mon Sep 17 00:00:00 2001 From: hw Date: Thu, 12 Sep 2024 00:20:17 +0900 Subject: [PATCH] docs: example sort --- 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