From dca5b62dfce55022a3b22d674de5320e0c2f9574 Mon Sep 17 00:00:00 2001 From: Jose Tello Date: Sun, 10 Apr 2016 19:28:10 -0700 Subject: [PATCH] Update wording in "Sort Arrays with Sort" challenge to prevent confusion due to lack of punctuation. --- .../object-oriented-and-functional-programming.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/seed/challenges/01-front-end-development-certification/object-oriented-and-functional-programming.json b/seed/challenges/01-front-end-development-certification/object-oriented-and-functional-programming.json index a9914c55934..1b6e757f641 100644 --- a/seed/challenges/01-front-end-development-certification/object-oriented-and-functional-programming.json +++ b/seed/challenges/01-front-end-development-certification/object-oriented-and-functional-programming.json @@ -431,7 +431,7 @@ "You can use the method sort to easily sort the values in an array alphabetically or numerically.", "Unlike the previous array methods we have been looking at, sort actually alters the array in place. However, it also returns this sorted array.", "sort can be passed a compare function as a callback. The compare function should return a negative number if a should be before b, a positive number if a should be after b, or 0 if they are equal.", - "If no compare function is passed in it will convert the values to strings and sort alphabetically.", + "If no compare (callback) function is passed in, it will convert the values to strings and sort alphabetically.", "Here is an example of using sort with a compare function that will sort the elements from smallest to largest number:", "
var array = [1, 12, 21, 2];
array.sort(function(a, b) {
  return a - b;
});
", "Use sort to sort array from largest to smallest."