3 ms·Sorry I meant to write ascending. It is weird that it swaps when i < j, but the list ends up ascendingby tonmoy 4y agoSorry I meant to write ascending. It is weird that it swaps when i < j, but the list ends up ascending