Dnf sort is giving wrong input

please look into my code…it is printing 1 at index 12

@Anku47 don’t use only if statements for all the three conditions in your dnf sort function instead use if ans else if for them.