diff --git a/.github/workflows/sorted.yml b/.github/workflows/sorted.yml new file mode 100644 index 00000000..3bed55f7 --- /dev/null +++ b/.github/workflows/sorted.yml @@ -0,0 +1,16 @@ +name: Exercise order + +on: + pull_request: + branches: + - main + +permissions: + contents: read + +jobs: + call-gha-workflow: + name: Check + uses: IsaacG/github-actions/.github/workflows/sorted.yml@main + with: + ordering: ".difficulty, .lowercase_name" diff --git a/config.json b/config.json index 2c61446a..af380677 100644 --- a/config.json +++ b/config.json @@ -387,27 +387,27 @@ ] }, { - "slug": "darts", - "name": "Darts", - "uuid": "0b93cd55-8f21-4198-a531-39de5502c02d", + "slug": "dnd-character", + "name": "D&D Character", + "uuid": "ca5cf3e4-6298-42a2-9a81-9bd25bc0cba2", "practices": [], "prerequisites": [], "difficulty": 3, "topics": [ - "control_flow_conditionals", - "math" + "math", + "randomness" ] }, { - "slug": "dnd-character", - "name": "D&D Character", - "uuid": "ca5cf3e4-6298-42a2-9a81-9bd25bc0cba2", + "slug": "darts", + "name": "Darts", + "uuid": "0b93cd55-8f21-4198-a531-39de5502c02d", "practices": [], "prerequisites": [], "difficulty": 3, "topics": [ - "math", - "randomness" + "control_flow_conditionals", + "math" ] }, {