Skip to content

Show default sort #17

@Kirkman

Description

@Kirkman

It would be nice if there was an optional way to force the plugin to show a sort icon on one of the columns on page load.

For example, say I have a table like this, and the initial sort is by Med. salary:

Department Employees Med. salary Med. exp.
Executive 20 $65,000 10.0
Design 13 $54,000 7.0
Support 50 $48,000 13.0

I'd like the downward arrow icon to display next to the Med. salary column header when the page loads ... to make it visually obvious how the table is initially sorted.

Maybe you could specify the default field as an optional extra value in the autosort tag? Something like:

{% autosort departments 'med_salary' %}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions