Bug: Sort an Array Alphabetically using the sort Method

Tell us what’s happening:

My solution is correct but is not recognized so by the tests.

Your code so far

function alphabeticalOrder(arr) {
  // Add your code below this line
  return arr.sort((a,b) => a > b)
  // Add your code above this line
alphabeticalOrder(["a", "d", "c", "a", "z", "g"]);

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.169 Safari/537.36.

Link to the challenge:

Actually, it is not correct because the challenge description is outdated

I suggest you read documentation on sort(), so you try figuring it out yourself:

ok thanks, it was pretty easier! :smile: