Comment

Comment by leesalminen

It's tedious but can be accomplished with server side sorting.

You could have:

<th>

    <a href="/search?sort=name&direction=asc">

        Name

    <a>
</th>

The server side code would interpret the sort and direction parameters and sort results as instructed.

parent leesalminen 9 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton