C++ · Arrays
Sorted readings put the smallest first and the median in the middle; selection sort is the simplest way to get there.