Easy10 min
Sort the Numbers
Return the numbers in ascending order without changing the original array.
Your function
Implement solve(value, extra) in JavaScript. Return the answer; printing alone does not count as a result.
Examples
Input:
[[3,1,2]]Output:
[1,2,3]Input:
[[10,2,1]]Output:
[1,2,10]Constraints
Input contains at most 1,000 values or characters. Numbers are finite integers. Inputs follow the structure shown in the examples.