Skip to content

[MISC] Sort subsections within sections alphabetically #1366

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

yarikoptic
Copy link
Collaborator

I was feeling the need for it each time I was navigating BIDS, but seeing
https://github.com/bids-standard/bids-specification/pull/1128/files#diff-98d0f806abc9af24e6a7c545d3d77e8f9ad57643e27211d7a7b896113e420ed2 suggesting the same made me propose it.

I think having subsections sorted where there is no really really a requirement for order helps visitor to navigate the document/website instead of doing linear search among all subsections.

@yarikoptic yarikoptic mentioned this pull request Dec 8, 2022
9 tasks
Copy link
Collaborator

@Remi-Gau Remi-Gau left a comment

Choose a reason for hiding this comment

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

Fine as is for me but always wondering if we should not put a comment in the yml saying that those sub sections are ordered alphabetrically.

Hopefully not to have this comment be ignored by the next person.

@yarikoptic
Copy link
Collaborator Author

Fine as is for me but always wondering if we should not put a comment in the yml saying that those sub sections are ordered alphabetrically.

I rebased and added a comment for each of those sections. AFAIK comments are ok for yaml so hopefully it would not break any workflow. Check it out

@codecov
Copy link

codecov bot commented Jan 18, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (1c6cc99) 88.65% compared to head (d446ab2) 88.65%.
Report is 383 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1366   +/-   ##
=======================================
  Coverage   88.65%   88.65%           
=======================================
  Files          11       11           
  Lines        1084     1084           
=======================================
  Hits          961      961           
  Misses        123      123           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

mkdocs.yml Outdated
- Intracranial Electroencephalography: modality-specific-files/intracranial-electroencephalography.md
- Task events: modality-specific-files/task-events.md
- Physiological and other continuous recordings: modality-specific-files/physiological-and-other-continuous-recordings.md
- Modality specific files: # keep sections in sorted order when adding/editing
- Behavioral experiments (with no neural recordings): modality-specific-files/behavioral-experiments.md
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why do we want these sorted alphabetically? I agree that order of addition to the spec is not ideal, but this feels unintuitive. I would expect EEG/MEG/iEEG/NIRS to be near each other, for example.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

In case of ambiguity I prefer "explicitness" of sorted order. It has been already many times I had to search up for a section because I managed to miss it in some "intuitive" order.
If there is no "flow" through the sections requiring some to precede another (is there?) I would really prefer explicit alphabetic sorting even if it would not have some "intuitive feel" ;)

Copy link

Choose a reason for hiding this comment

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

My intuitive feel was different and actually close to the proposal of @yarikoptic ... The first time I rendered the doc for the BEP020 I though my modifications didn't work as i couldn't find it in the top of the list ("Eyetracking" starting with "E")... this is why i changed it first, before being noticed that it couldn't be part of my PR.

mkdocs.yml Outdated
- Physiological and other continuous recordings: modality-specific-files/physiological-and-other-continuous-recordings.md
- Positron Emission Tomography: modality-specific-files/positron-emission-tomography.md
- Task events: modality-specific-files/task-events.md
- Derivatives: # keep sections in sorted order when adding/editing
Copy link
Collaborator

Choose a reason for hiding this comment

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

I guess it's lucky that derivatives were already sorted. But these are also sorted from "most broadly applicable" to "most specific".

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

yeah -- here may be we could leave as is without comment

mkdocs.yml Outdated
- BIDS Derivatives: derivatives/introduction.md
- Common data types and metadata: derivatives/common-data-types.md
- Imaging data types: derivatives/imaging.md
- Longitudinal and multi-site studies: longitudinal-and-multi-site-studies.md
- Glossary: glossary.md
- BIDS Extension Proposals: extensions.md
- Appendix:
- Appendix: # keep sections in sorted order when adding/editing
- Arterial Spin Labeling: appendices/arterial-spin-labeling.md
- Contributors: appendices/contributors.md
Copy link
Collaborator

Choose a reason for hiding this comment

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

Similarly, I think Contributors, Licenses, Entities, Units, etc were at the front for being more broadly useful.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

well, meanwhile it became

Schema
Contributors
Licenses
Entity table
Entities
File collections
Units

so Units are far from the front etc attesting to the point that without clear deterministic order opinions would differ and overall leading to some arbitrary order favoring some and disfavoring others

- The BIDS Starter Kit:
- Website: https://bids-standard.github.io/bids-starter-kit
- Tutorials: https://bids-standard.github.io/bids-starter-kit/tutorials/tutorials.html
- The BIDS Starter Kit: # keep sections in sorted order when adding/editing
- GitHub repository: https://github.com/bids-standard/bids-starter-kit
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why should the GitHub source repo be prioritized over rendered docs?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Just the same logic -- explicit ordering, and who knows what I am looking for ? (I often come to RTD to find the original repo behind it). Having said that -- we could though make it into Sources (GitHub): instead and bring down the line/make robust to change in hosting provider.

Copy link
Member

Choose a reason for hiding this comment

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

+1 for Sources (GitHub)

I often come to RTD to find the original repo behind it

I also do that, but I don't think that's necessarily a representative behavior for BIDS users ... I am still fine with the proposed change of ordering alphabetically as I think it has more advantages than drawbacks.

@sappelhoff sappelhoff changed the title Sort subsections within sections [MISC] Sort subsections within sections alphabetically Jan 23, 2023
Copy link
Member

@sappelhoff sappelhoff left a comment

Choose a reason for hiding this comment

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

I think I am fine with alphabetical ordering. Once you know what you are looking for, it'll be easier to find.

The drawback of course is, that new visitors to the spec don't get the subsections in "our subjective order of relevance" (e.g., the "Units" appendix before the ASL appendix).

@Remi-Gau Remi-Gau added opinions wanted Please read and offer your opinion on this matter discussion ongoing discussion user experience labels Dec 22, 2023
I was feeling the need for it each time I was navigating BIDS, but
seeing
https://github.com/bids-standard/bids-specification/pull/1128/files#diff-98d0f806abc9af24e6a7c545d3d77e8f9ad57643e27211d7a7b896113e420ed2
suggesting the same made me propose it.

I think having subsections sorted where there is no really really a
requirement for order helps visitor to navigate the document/website instead of
doing linear search among all subsections.
@yarikoptic
Copy link
Collaborator Author

Dear participants and other @bids-maintenance folks! I have resolved conflicts and commented a little more. I would appreciate your final comments/decisions/actions: IMHO, especially accounting for changes which happened to the menu items meanwhile, a deterministic order (e.g. sorted) would be beneficial and would reduce cognitive burden in adding new ones and navigating the website where the list of menu items is only growing and current, mostly "evolutional", order does not really make sense.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discussion ongoing discussion opinions wanted Please read and offer your opinion on this matter user experience
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants