I Have this SQL:
WHERE number >= '" + numberFrom + "'
AND number <= '" + numberTo + "'
ORDER BY number DESC
You are doing alphabetic comparison where for that matter '9' > '19'.
If you want to compare numbers you should use numbers and not text or left pad the text with zeros to a fixed size, e.g. '00019' > '00009'