Skip to content

Commit

Permalink
Fix typo in sort.md (#4296)
Browse files Browse the repository at this point in the history
  • Loading branch information
jfr3000 committed Jul 16, 2024
1 parent 34de8e2 commit f8eac72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/docs/src/en/plugins/sort.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ You can react to sorting changes by passing a handler function to `x-sort` and a
</div>
<!-- END_VERBATIM -->

The `x-sort` handler will be called every time the sort order of the items change. The `$item` magic will contain the key of the sorted element (derived from `x-sort:item`), and `$position` will contain the new position of the item (staring at index `0`).
The `x-sort` handler will be called every time the sort order of the items change. The `$item` magic will contain the key of the sorted element (derived from `x-sort:item`), and `$position` will contain the new position of the item (starting at index `0`).

You can also pass a handler function to `x-sort` and that function will receive the `item` and `position` as the first and second parameter:

Expand Down

0 comments on commit f8eac72

Please sign in to comment.