Sort button
const sort = table.createSort('last_name')
<button onclick={() => sort.set()} class:active={sort.isActive} type="button">
last_name
<span class:active={sort.direction === 'asc'} >↑</span>
<span class:active={sort.direction === 'desc'}>↓</span>
</button>
last_name |
---|
Vint |
Cerman |
Bunn |
Saurin |
Granulette |
Benley |
Criag |
Risom |
Menendes |
Gammill |