Course contentsShow
JavaScript
Lesson 2235 of 2,72346. InternationalizationPro lesson

The compare() Method

Use compare() as a comparator function for Array.sort() to achieve correct alphabetical ordering in any locale.

This lesson is for subscribers

You've completed the free preview. Subscribe to unlock every lesson in every course.