Sorting a Table


You can perform a simple table sort by sorting on the contents of a single column. You can also perform a more complicated sort by sorting on the contents of two columns. You can't sort tables that contain merged cells. The following exercise demonstrates sorting.

1.

Open the poses.html document in the Lesson_06_Tables/Explorations folder, select the table, and choose Commands > Sort Table.

The Sort Table dialog box opens.

2.

Set the following options.

Sort By: Select the column to sort. For this exercise, select Column 1 (default).

Order: Specify whether you want to sort the column alphabetically or numerically. For this exercise, select Alphabetically (default). This option is important when the contents of a column are numerical. An alphabetical sort applied to a list of one- and two-digit numbers results in an alphanumeric sort (such as 1, 10, 2, 20, 3, 30) rather than a straight numeric sort (such as 1, 2, 3, 10, 20, 30). Choose Ascending (A to Z or low to high) for the sort order (default).

Then By: For this exercise, leave it blank (default). Then By lets you choose to perform a secondary sort on a different column. The sort methods in the menu are the same as the methods that are available in Sort By.

Sort Includes The First Row: This option allows you to specify whether the first row is included in the sort. If the first row is a heading that shouldn't be moved, leave this checkbox unchecked (default). For this exercise, however, you should check this option.

Sort Header Rows: For this exercise, leave this option unchecked (default).

Sort Footer Rows: For this exercise, leave this option unchecked (default).

Keep All Row Colors The Same After The Sort Has Been Completed: If you changed any attributes for a row, you can retain that attribute in the row by choosing this option. Suppose that you sort a table with a color in the first row. After sorting, the data in the first row moves to the second row. If this option is selected, the color moves with the data to the second row. If this option is not selected, the color remains in the first row. For this exercise, leave this option unchecked (default).

3.

Click OK.

The table is now sorted alphabetically using the data in the first column. Save your document.




Macromedia Dreamweaver 8(c) Training from the Source
Macromedia Dreamweaver 8: Training from the Source
ISBN: 0321336267
EAN: 2147483647
Year: 2006
Pages: 326

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net