No-Library (pure JS), HTML, CSS, JavaScript
Put selected rows at the beginning of the table when sorting the data.