Domain changed to archive.palanq.win . Feb 14-25 still awaits import.
[8 / 1 / ?]

What type of sorting algorithm is this?

ID:uVgvkEBM No.693736 View ViewReplyOriginalReport
template<typename Iter>
void sort(Iter first, Iter last)
{
while (first != last)
{
Iter p = last-1;

while (first != p)
{
if (*first > *p)
{
auto tmp = *first;
*first = *p;
*p = tmp;
}

--p;
}

++first;
}
}