converted cmp from string to int

string comparison was being performed not int
now you can use negative numbers which is not recommended
however, for temporarily reordering, it can be useful