Challenge: Sort Elements of an Array in Descending Order

Test your knowledge by solving a difficult challenge in this lesson.

Problem statement

Your task is to write a function sort_elements. Your function signature would be:

Get hands-on with 1200+ tech skills courses.