if(strcmp(argv[j],argv[i]<0))

Double check the placement of your parenthesis on this line.