it is not a bug, you are comparing two strings,
and the string '23' is smaller than string '3'.
in string comparison, the first char is compared, if one is smaller than the other one, the comparison is terminated.
"2" is smaller than "3" also in the ASCII table (https://www.asciitable.com/), so the result is expected.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…