To ensure that the correct data is selected, highlight the range before starting the sort.
If the same range will be sorted repeatedly, the best approach is togive it a Name.
Sort Key and Sort Order in Excel
Sorting requires the use of asort keyand a sort order.

Lifewire / Adrian Mangel
Then choose how you want the data sorted.
For text data, the options are Sort A to Z and Sort Z to A.
For numeric data, the options are Sort Smallest to Largest and Sort Largest to Smallest.

In multi-column sorts, the sort keys are identified by selecting the column headings in the Sortdialog box.
The data is first sorted by name and then by age.
This row contains data that is different from the data in subsequent rows.

Excel uses formatting to determine whether a row contains column headings.
Excel uses this difference to make a determination on whether the first row is a heading row.
Available sort orders available for dates include:
Quick Sort vs.

These lists allow sorting by days or months chronologically rather than in alphabetical order.
The result is the reordering of entire rows or records of data.
One reason for sorting by row is to match the column order between different tables of data.

Once the sort is done,the added row of numbers can easily be deleted.
For example, to use font color to reorder the columns:




