Skip to content

Commit dba68ad

Browse files
rewolfmmalerba
authored andcommitted
docs(sort): fix grammar in the 'sort' documentation (#18751)
Changed some incorrect uses of "an" to "a". Removed a duplicate word.
1 parent b29308a commit dba68ad

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/material/sort/sort.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ to tabular data.
77

88
To add sorting behavior and styling to a set of table headers, add the `<mat-sort-header>` component
99
to each header and provide an `id` that will identify it. These headers should be contained within a
10-
parent element with the `matSort` directive, which will emit an `matSortChange` event when the user
10+
parent element with the `matSort` directive, which will emit a `matSortChange` event when the user
1111
triggers sorting on the header.
1212

1313
Users can trigger the sort header through a mouse click or keyboard action. When this happens, the
14-
`matSort` will emit an `matSortChange` event that contains the ID of the header triggered and the
14+
`matSort` will emit a `matSortChange` event that contains the ID of the header triggered and the
1515
direction to sort (`asc` or `desc`).
1616

1717
#### Changing the sort order
@@ -23,18 +23,18 @@ To reverse the sort order for all headers, set the `matSortStart` to `desc` on t
2323
directive. To reverse the order only for a specific header, set the `start` input only on the header
2424
instead.
2525

26-
To prevent the user from clearing the sort sort state from an already sorted column, set
26+
To prevent the user from clearing the sort state from an already sorted column, set
2727
`matSortDisableClear` to `true` on the `matSort` to affect all headers, or set `disableClear` to
2828
`true` on a specific header.
2929

3030
#### Disabling sorting
3131

3232
If you want to prevent the user from changing the sorting order of any column, you can use the
33-
`matSortDisabled` binding on the `mat-sort`, or the `disabled` on an single `mat-sort-header`.
33+
`matSortDisabled` binding on the `mat-sort`, or the `disabled` on a single `mat-sort-header`.
3434

3535
#### Using sort with the mat-table
3636

37-
When used on an `mat-table` header, it is not required to set an `mat-sort-header` id on because
37+
When used on a `mat-table` header, it is not required to set a `mat-sort-header` id on because
3838
by default it will use the id of the column.
3939

4040
<!-- example(table-sorting) -->

0 commit comments

Comments
 (0)