LWT JavaScript API
    Preparing search index...

    Module ui/sorttable

    SortTable - Makes HTML tables sortable by clicking column headers

    A modern TypeScript replacement for sorttable.js v2 by Stuart Langridge. Automatically finds tables with class="sortable" and makes them sortable.

    Features:

    • Click column headers to sort
    • Click again to reverse sort
    • Automatic type detection (numeric, date, alphabetic)
    • Custom sort keys via sorttable_customkey attribute
    • Skip columns with sorttable_nosort class
    • Force numeric sort with sorttable_numeric class

    Functions

    initSortable
    makeSortable