Jump to content

Talk:Z19164

From Wikifunctions
Latest comment: 1 year ago by Dv103 in topic Edit request: implementation broken

Edit request: implementation broken

Please see test case Z24664; this implementation is broken. JavaScript sorts values lexicographically by their string representation, so e.g. [3, 2, 10].sort() results in [10, 2, 3]. To fix this, I would like to change line 2 to the following:

return Z17869K1.sort((a, b) => Number(a - b));

However, when I try to publish, I get an error that says "You don't have permission to edit Implementation that is connected to a Function."

Thanks. --WrenFalcon (talk) 06:12, 15 May 2025 (UTC)Reply

Now you should be able to edit it. Dv103 (talk) 07:36, 15 May 2025 (UTC)Reply
Now I've solved the problem Dv103 (talk) 12:27, 15 May 2025 (UTC)Reply