"1000" < "2"; You need to convert to numbers first.