An algorithm is represented in the pseudo-code below:
1 readings[0] ← 34.2
2 readings[1] ← 12.8
3 readings[2] ← 21.5
4 FOR i ← 0 TO 1
5 FOR j ← 0 TO 1
6 IF readings[j] > readings[j + 1] THEN
7 temp ← readings[j]
8 readings[j] ← readings[j + 1]
9 readings[j + 1] ← temp
10 ENDIF
11 ENDFOR
12 ENDFOR
State the purpose of this algorithm.