Sort Property is not working with me

Hello all,

I was applying the beginner course for Javascript, and while I am applying the sorting for array lecture, the output does not go correctly as in the lecture, I do not know what is the reason for that, and I’ll be appreciating to know what is wrong in my code. below is the code in the video and the code which is I wrote with the output

Hi,
Look at line 14 & 15

its likely the directions of your greater than and less than operators, that is what i see different from Mosh’s code vs your code.

yes exactly, I don’t know how I didn’t notice that Hahaha, thanks a lot guys ; )

Thanks for the information, I will try to figure it out for more.