Skip to content

Conversation

@IsaacG
Copy link
Member

@IsaacG IsaacG commented May 27, 2025

jq '.exercises.practice = (.exercises.practice|sort_by(.difficulty, .slug))' config.json > t && mv t config.json

```
jq '.exercises.practice = (.exercises.practice|sort_by(.difficulty, .slug))' config.json > t && mv t config.json
```
@IsaacG IsaacG requested review from glennj and kotp May 27, 2025 05:51
Copy link
Member

@kotp kotp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approving, but why? Why not any other organization of this file? What prompted the change?

@IsaacG
Copy link
Member Author

IsaacG commented May 27, 2025

Approving, but why? Why not any other organization of this file?

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.

What prompted the change?

A PR in another repo where I noticed the exercises were not in difficulty order.

@IsaacG IsaacG merged commit 96f6908 into exercism:main May 27, 2025
3 checks passed
@kotp
Copy link
Member

kotp commented May 28, 2025

Approving, but why? Why not any other organization of this file?

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.

What prompted the change?

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.

@IsaacG
Copy link
Member Author

IsaacG commented May 28, 2025

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.

@kotp
Copy link
Member

kotp commented May 28, 2025

Yep, not the irrelevant part.

The order of the exercises in this file dictate the order they show up on the website.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants