A grid of sound samples has one row per microphone. Sorting helps inspect its low and high values, but changes their order: keep the original if you need to know when each reading occurred.
np.sort(samples, axis=1) sorts across columns within each row. axis=0 sorts down each column independently. Unlike a reduction, sorting keeps both dimensions and the same shape. It returns a new array; the input stays unchanged.
The default axis is the last one (axis=-1), which is axis 1 for this 2D grid. We write the axis explicitly here to make the direction clear.
by_microphone from 0 to 1.Run main.py: the sorted rows should be [3 6 8] and [1 4 9]. Then Submit.
Sorting on axis 1 stays within each row and keeps the grid shape.