From 6996d54fe72f533a20da549aeaf9a4d52984e482 Mon Sep 17 00:00:00 2001 From: vama Date: Mon, 13 Sep 2021 20:52:55 +0530 Subject: [PATCH] fix(curriculum): specify array is returned from the function (#43425) * (fix)Sort an array alphabetically using the sort Method - Array is returned from the function #43417 * (mod)Curriculum - Adding explicit instructions so that function will return a sorted array #43417 * (fix)Curriculum - Correcting grammetic error in instructions #43417 * mod: updated transaltion message #43417 * fix: Curriculum - Updated grammatical error in instructions #43417 Co-authored-by: Vama Mehta --- .../sort-an-array-alphabetically-using-the-sort-method.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/functional-programming/sort-an-array-alphabetically-using-the-sort-method.md b/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/functional-programming/sort-an-array-alphabetically-using-the-sort-method.md index eac62b543b..527114e6db 100644 --- a/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/functional-programming/sort-an-array-alphabetically-using-the-sort-method.md +++ b/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/functional-programming/sort-an-array-alphabetically-using-the-sort-method.md @@ -38,7 +38,7 @@ JavaScript's default sorting method is by string Unicode point value, which may # --instructions-- -Use the `sort` method in the `alphabeticalOrder` function to sort the elements of `arr` in alphabetical order. +Use the `sort` method in the `alphabeticalOrder` function to sort the elements of `arr` in alphabetical order. The function should return the sorted array. # --hints-- @@ -83,7 +83,7 @@ assert( function alphabeticalOrder(arr) { // Only change code below this line - + return arr // Only change code above this line } alphabeticalOrder(["a", "d", "c", "a", "z", "g"]);