Sorting arranges the visible cells on the sheet. In Calc, you can sort by up to three criteria, with each criterion applied one after the other. Sorts are handy when you are searching for a particular item, and become even more powerful after you have filtered data.
In addition, sorting is often useful when you add new information. When a list is long, it is usually easier to add new information at the bottom of the sheet, rather than adding rows in the proper places. After you have added information, you can then sort it to update the sheet.
Highlight the cells to be sorted, then select Data > Sort to open the Sort dialog, or click the Sort Ascending or Sort Descending toolbar buttons. Using the dialog, you can sort the selected cells using up to three columns, in either ascending (A-Z, 1-9) or descending (Z-A, 9-1) order.
|| You can define a custom sort order if the supplied alphanumeric ones do not fit your requirements. See
Defining a fill series for instructions.
Choosing the criteria and order of sorting
On the Options tab of the Sort dialog, you can choose the following options:
If two entries are otherwise identical, one with an upper case letter is placed before one with a lower case letter in the same position.
Range contains column labels
Does not include the column heading in the sort.
A cell's formatting is moved with its contents. If formatting is used to distinguish different types of cells, then use this option.
Copy sort results to
Sets a spreadsheet address to which to copy the sort results. If a range is specified that does not have the necessary number of cells, then cells are added. If a range contains cells that already have content, then the sort fails.
Custom sort order
Select the box, then choose one of the sort orders defined in Tools > Options > OpenOffice.org Calc > Sort Lists from the drop-down list.
Sets whether rows or columns are sorted. The default is to sort by columns unless the selected cells are in a single column.
Options for sorting