The sort compares whole lines. Alphabetical order uses a base-letter comparison, so “b” follows “a” and capitalization does not create a second group.
Numeric order still sorts lines, but it compares the digit runs as numbers. “item 2” comes before “item 10”. Descending order reverses the same comparison.