Sort practice exercises by difficulty then slug.#740
Conversation
IsaacG
commented
May 27, 2025
``` jq '.exercises.practice = (.exercises.practice|sort_by(.difficulty, .slug))' config.json > t && mv t config.json ```
kotp
left a comment
There was a problem hiding this comment.
Approving, but why? Why not any other organization of this file? What prompted the change?
The order of the exercises in this file dictate the order they show up on the website. Nothing else in this file has ordering that shows up on the website.
A PR in another repo where I noticed the exercises were not in difficulty order. |
Great answer. That could be in the body of the commit for "Story telling time" when we look at the git logs. But perhaps it is too late, as it appears it is in the main branch now, and that should not be ammended. |
|
Which part? The first part belongs in the track docs, the latter is entirely irrelevant. I suppose "sort exercises" could be more explicit that this sorts the exercises on the website as well as in the config. |
|
Yep, not the irrelevant part.
|