opensafely-core / opensafely-core/opencodelists
Sort results of codelist
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 60
- Forks
- 16
- Avg merge
- 4d 12h
- Merged PRs (30d)
- 17
Description
This is an non-urgent issue but making a suggestion now for prioritisation at a later date.
As a user I would like to sort codelists by different criteria to make it easier to review
I'm checking codelists at the moment against an external reference source. That source is organised on an alphabetical basis while our codelist is organised by BNF hierarchy. It would be useful here to sort by alphabetical order. I imagine in other places like snomed there might be some other sort criteria as well

Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No files or tests are named. Start by locating the codelist results view and how its current BNF hierarchy ordering is produced, then review the issue's alphabetical-order example and any existing ordering options. Done means users can select the supported sort criteria and the displayed codelist follows the selected order.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- web-dev
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100