DNF SORT ERROR HELP


here is the code as bhaiya explained but I dont get why 2nd last 2 and 1 are not getting swapped.

@lakshay2311,
Use else if rather than just if

1 Like

Cool, thanks :slight_smile: got it