I add a checkmark to the mat table, but I found a possible error. To play it, you must do the following:
Click the global checkbox to select all rows
Uncheck some checkboxes from the lines
Check the boxes without a check box.
Click several times in the table header to arrange the rows
See how selected checkboxes are reset when ordering rows
The following gif shows how to play it in the following example.

source
share