This is a kind of hybrid between the 'classic' bubble sort and the sort selection - but closer to the classic bubble sort.
In classic bubble sorting, the inner loop changes adjacent pairs as it goes through the list / array.
In the classic sort selection, the inner loop keeps track of the largest value that it finds in the rest of the list and swaps it with the first value in the part of the list that the inner loop considers.
The sorting posted in the question is similar to the sorting of the selection in that the swap is always performed with the first value in the sub-list considered by the inner loop. It differs from selection sorting (and is similar to classic Bubble sorting) in that it swaps when it finds a value greater than the current first element of the inner subdirectory of the inner loop.
However, it differs from the classic Bubble type in that it does not replace adjacent pairs. In the classic Bubble sort, when the inner loop has finished work on the round, the largest list item is filtered at the bottom of the list, but in this embodiment, the smallest item is filtered at the top of the substring of the inner loop -list.
I would call it a variation of the classic Bubble sort rather than a sort sort, because the sorting performance characteristics in question are the same as the classic Bubble sort ( O(n^2) comparisons and O(n^2) swaps), while how selection sorting has O(n) swaps.
But, another difference between the classic Bubble type and this is that the classic Bubble sort is stable, but the sort in question is not. When viewing a sort, consider the following list of items. In comparison, only numbers are used - letters are used only to distinguish elements with the same rank. The diagrams show swap operations (not shown for the sake of brevity):
3.a 3.b 3.c 2.a 2.b 1.a ^ ^ +----------------+ 2.a 3.b 3.c 3.a 2.b 1.a ^ ^ +----------------------------+ 1.a 3.b 3.c 3.a 2.b 2.a ^ ^ +-----------------+ 1.a 2.b 3.c 3.a 3.b 2.a ^ ^ +-----------------+ 1.a 2.b 2.a 3.a 3.b 3.c
Note that at the end of the sorting, the relative position of 2.a and 2.b has changed, indicating an unstable view.