A spreadsheet arranges numbers in order of magnitude.
When a spreadsheet sorts a column of numerals, it rearranges the numerals in order of magnitude. That can be done with two different criteria: from smallest to largest (often shows as A to Z) or from largest to smallest (often shows as Z to A).