Challenge

The challenge template is loaded into the playground. Do not modify it, only add new code.
Done here? Go back to the challenges page and select another!

Sort an Array

Number of submissions and other statistics here :)

Given a list of integers in the addresses between 0x0 and 0x40, sort the numbers in ascending order. The length of the array is also given.

Expected result:

memory[0..length] = sort(memory[0..length])