Coursera Project Network
Sort Arrays with JavaScript Methods
Coursera Project Network

Sort Arrays with JavaScript Methods

Taught in English

Judy Richardson

Instructor: Judy Richardson

Included with Coursera Plus

Guided Project

Learn, practice, and apply job-ready skills with expert guidance

Intermediate level

Recommended experience

2 hours
Learn at your own pace
No downloads or installation required
Only available on desktop
Hands-on learning

What you'll learn

  • Recognize the variety of ways in which an array's elements can be ordered.

  • Sort the elements in an array into a specific order.

  • Use the JavaScript sort() method to sort elements in an array.

Details to know

Shareable certificate

Add to your LinkedIn profile

Guided Project

Learn, practice, and apply job-ready skills with expert guidance

Intermediate level

Recommended experience

2 hours
Learn at your own pace
No downloads or installation required
Only available on desktop
Hands-on learning

See how employees at top companies are mastering in-demand skills

Placeholder

Learn, practice, and apply job-ready skills in less than 2 hours

  • Receive training from industry experts
  • Gain hands-on experience solving real-world job tasks
  • Build confidence using the latest tools and technologies
Placeholder

About this Guided Project

Learn step-by-step

In a video that plays in a split-screen with your work area, your instructor will walk you through these steps:

  1. Use the JavaScript sort() and reverse() methods to sort elements in an array in alphabetic and reverse alphabetic order.

  2. Use the JavaScript sort() method with toLowerCase() and localeCompare() methods to correctly sort mixed-case elements in an array.

  3. Alter an array sort to use simple math with the JavaScript sort() method to compare the numeric value of elements as they are sorted.

  4. Reorder the elements in an array randomly using the JavaScript sort() method with arguments that include the random() method.

  5. Include a property name in the JavaScript sort() method function to order the elements in an object array by property value.

Recommended experience

Completion of Introduction to JavaScript Arrays or exposure to using arrays in JavaScript is recommended.

5 project images

Instructor

Judy Richardson
Coursera Project Network
72 Courses161,768 learners

Offered by

How you'll learn

  • Skill-based, hands-on learning

    Practice new skills by completing job-related tasks.

  • Expert guidance

    Follow along with pre-recorded videos from experts using a unique side-by-side interface.

  • No downloads or installation required

    Access the tools and resources you need in a pre-configured cloud workspace.

  • Available only on desktop

    This Guided Project is designed for laptops or desktop computers with a reliable Internet connection, not mobile devices.

Why people choose Coursera for their career

Felipe M.
Learner since 2018
"To be able to take courses at my own pace and rhythm has been an amazing experience. I can learn whenever it fits my schedule and mood."
Jennifer J.
Learner since 2020
"I directly applied the concepts and skills I learned from my courses to an exciting new project at work."
Larry W.
Learner since 2021
"When I need courses on topics that my university doesn't offer, Coursera is one of the best places to go."
Chaitanya A.
"Learning isn't just about being better at your job: it's so much more than that. Coursera allows me to learn without limits."

New to Mobile and Web Development? Start here.

Placeholder

Open new doors with Coursera Plus

Unlimited access to 7,000+ world-class courses, hands-on projects, and job-ready certificate programs - all included in your subscription

Advance your career with an online degree

Earn a degree from world-class universities - 100% online

Join over 3,400 global companies that choose Coursera for Business

Upskill your employees to excel in the digital economy

Frequently asked questions