Like @Kasra said you do not need to use the cmp parameter, you can just use the key , also if you want to consider the second element as integers (numbers) you can replace',' with '' (Assuming only , will come in that) (empty string) and then convert to int and use, so that numbers of same length are also sorted correctly.
Example -
>>> x = [['jis','1,2334'],['hshshau','123'],['sjuaj','3214'],['nbhd','1,841']]
>>> x.sort(key = lambda x: int(x[1].replace(',','')))
>>> x
[['hshshau', '123'], ['nbhd', '1,841'], ['sjuaj', '3214'], ['jis', '1,2334']]
From the documentation for cmp argument -
cmp specifies a custom comparison function of two arguments (iterable elements) which should return a negative, zero or positive number
As you can see above, cmp function needs to return 0 if both are equal, positive number if the first is greater and negative number if the first is less than the second argument.
But in your case you are returning a boolean value, causing the issue.