Python Program to Sort List in Ascending Order without using Sort. In this program, we are using Nested For Loop to iterate each number in a list, and sort them in ascending order.
if(NumList[0] > NumList[1]) = if(67 > 86) –
It means the condition is False.
So, it exits from the If block, and the j value incremented by 1.