What does this print?
printf '10\n9\n100\n' | sort | head -1
1091001
Plain
Play Linux CLI ▸
sort compares text, so the order is 10, 100, 9; use sort -n for numeric order.