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"]);