your field "numberi" is very likely of data type varchar, in which MAX() will indeed return "9" and not "10"
change the field to numerical data type, and the order by as well as MAX will work on numerical comparison and not string comparison
you could also try:
MAX(yourfield + 0)