Skip to content

Commit 8f5e140

Browse files
committed
minor
1 parent 7af4170 commit 8f5e140

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

src/lib/sort/sort.md

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
The `mdSort` and `md-sort-header` are used, respectively, to add sorting behavior, state, and display
1+
The `mdSort` and `md-sort-header` are used, respectively, to add sorting state and display
22
to tabular data.
33

44
<!-- example(sort-overview) -->
55

6-
# Adding sort to table headers
6+
### Adding sort to table headers
77

88
To add sorting behavior and styling to a set of table headers, add the `<md-sort-header>` component
99
to each header and provide an `id` that will identify it. These headers should be contained within a
@@ -14,18 +14,20 @@ Users can trigger the sort header through a mouse click or keyboard action. When
1414
`mdSort` will emit an `mdSortChange` event that contains the ID of the header triggered and the
1515
direction to sort (`asc` or `desc`).
1616

17-
### Changing the sort order
17+
#### Changing the sort order
1818

1919
By default, a sort header starts its sorting at `asc` and then `desc`. Triggering the sort header
2020
after `desc` will remove sorting.
2121

22-
To reverse the sort order for all headers, set the `mdSortStart` to `desc` on the `mdSort` directive.
23-
To reverse the order only for a specific header, set the `start` input only on the header instead.
22+
To reverse the sort order for all headers, set the `mdSortStart` to `desc` on the `mdSort`
23+
directive. To reverse the order only for a specific header, set the `start` input only on the header
24+
instead.
2425

25-
To prevent the user from removing sort altogether after it is applied, set `mdSortDisableClear` to
26-
`true` on the `mdSort` to affect all headers, or set `disableClear` to `true` on a specific header.
26+
To prevent the user from clearing the sort sort state from an already sorted column, set
27+
`mdSortDisableClear` to `true` on the `mdSort` to affect all headers, or set `disableClear` to
28+
`true` on a specific header.
2729

28-
### Using sort with the md-table
30+
#### Using sort with the md-table
2931

3032
When used on an `md-table` header, it is not required to set an `md-sort-header` id on because
3133
by default it will use the id of the column.

0 commit comments

Comments
 (0)