Comparing numbers with a text compare block gives you anomalies. (See attached.)
You need to separate out the numbers from the text and compare them using math blocks.
Samples: