I’m really upset by what’s going on here.

I’ve been stuck by this in 3 weeks.

I strongly believe this is a one of the most important thing to pass to learn JS via Freecodecamp.

Million people walk through this but me.

And I still don’t know why and how and what to do.

I’m really upset about my self. And after 3 weeks stuck with this, I post here to hope some help can save me .

I really appreciate the kindness from heaven.

**Your code so far**

```
function alphabeticalOrder(arr) {
return arr.sort(function(a, b) {
return a > b;
});
}
alphabeticalOrder(["a", "d", "c", "a", "z", "g"]);
```

**Your browser information:**

User Agent is: `Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.77 Safari/537.36`

.

**Link to the challenge:**

https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/functional-programming/sort-an-array-alphabetically-using-the-sort-method/