JavaScript for WordPress › Forums › Vanilla JavaScript › Issue with array sorting example This topic has 1 reply, 2 voices, and was last updated 8 years, 6 months ago by Zac Gordon. Viewing 2 posts - 1 through 2 (of 2 total) Author Posts June 1, 2016 at 1:13 pm #4938 Mike LittleParticipant (Posting here for completeness, I already tweeted this) I spotted an error in your video on Arrays. To reverse sort, you need to swap the two parameters passed to the callback function and perform the same subtraction operation. See example here https://jsbin.com/xunapa/3/edit?js,console Mike June 1, 2016 at 1:15 pm #4945 Zac GordonKeymaster Thanks so much Mike! I just posted an update to the official Code Examples and made a note on the video page. Good catch, thank you! Author Posts Viewing 2 posts - 1 through 2 (of 2 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In