Flutter-Bounty-Hunters / static_shock

A static site generator for Dart.
MIT License
59 stars 5 forks source link

[Shock] - Replace multi-parameter page sorting with a single sorting string #92

Closed matthew-carroll closed 2 months ago

matthew-carroll commented 2 months ago

Currently, pages support up to one sorting property, with an order specified separately:

{{ pages.byTag("myTag", sortBy = "title", order = "desc") }}

We'd like to support multiple sorting properties in a priority list, and also reduce the verbosity. We should instead support something like:

{{ pages.byTag("myTag", sortBy = "title=desc date=asc") }}