From d31c15d81f368614f81e8c32295d0529b66e7334 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Thu, 27 Feb 2025 13:07:43 +0900 Subject: [PATCH] [DOC] Reference to the idiom from Array#sort --- array.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/array.c b/array.c index 7ba887dc89..7f1db81040 100644 --- a/array.c +++ b/array.c @@ -3474,6 +3474,9 @@ rb_ary_sort_bang(VALUE ary) * When the block returns zero, the order for +a+ and +b+ is indeterminate, * and may be unstable. * + * See an example in Numeric#nonzero? for the idiom to sort more + * complex structure. + * * Related: see {Methods for Fetching}[rdoc-ref:Array@Methods+for+Fetching]. */