Given an array of numbers, sort the numbers ascending(1, 2, 3) and return the sorted array [closed]

I want to get the array sorted in javascript as an example given below.

Expected [7, 4, 2, 3, +0, 5] to the same ordered members as [+0, 2, 3, 4, 5, 7]