10.8. Tables

A table is a rectangular area with rows and columns, used to display data. The intersection of a row and a column is called a cell. Each column is labeled with a column name.

If there are too many rows of data to fit in the viewing area, a vertical scroll bar appears on the right side of the table. You can scroll through the data rows using this scroll bar. The column labels do not scroll, so are always visible at the top of the table.

To sort the data on a column, move the pointer into the label for that column and click the left mouse button. A small arrow will appear in that column indicating that the data is sorted on that column. To change the direction of the sort in the column, click again. Each time you click, the direction of the sort reverses. The direction of the arrow in the column label indicates the direction of the sort.

The sorting algorithm is a stable sort, which allows you to sort on a secondary column. To sort on a secondary column, click on that column first to sort it, then click on the primary sort column. The sorting indicator will only appear in the primary sort column, but rows with the same primary column value will remain sorted according to the secondary column.

To rearrange the columns in a table, move the pointer into the label for the column to be moved, then press the left mouse button and drag the column to its new location. As you move the column to the left or right, the other columns will move aside to make room for it. When the column is in the desired location, release the mouse button.