Data Table Sorting

Inkline's Data Table columns are easily sortable (orderable), in both ascending and descending order.

Default Sorting

By setting the sortable column property to true, you can easily add sorting support to a data table column.

export default {
    data() {
        return {
            columns: [
                { title: 'Name', path: 'name', sortable: true },
                { title: 'Email', path: 'email', sortable: true },
                { title: 'Age', path: 'age', sortable: true }
            ],
            rows: [ ... ]
        }
    }
}

By default, sorting for the string, number and Date value types is supported natively.

Data Table Default Sorting