datajoint / datajoint-labbook

DataJoint LabBook is a graphical user interface built using React to facilitate working with DataJoint computational pipelines.
https://datajoint.com/docs/core/datajoint-labbook
MIT License
11 stars 14 forks source link

A new sorting mechanism for schemas and tables #168

Open tdincer opened 2 years ago

tdincer commented 2 years ago

Feature Request

A new sorting mechanism for schemas and tables.

Problem

The schema list for calcium imaging is sorted alphabetically (imaging, lab, scan, session, subject). However, this does not reflect the order of events. To have calcium imaging modality one first needs to define a lab, subjects in that lab, sessions for each subject, scans taken in each session, and finally the imaging analysis has to be run on the scans. So the order should be: lab -> subject -> session ->scan -> imaging. As a matter of fact, we see this order in the Entity-Relationship Diagram.

Requirements

I think the suggested sorting can be done with the existing topological sort function.

Justification

Having this sorting mechanism would highly increase the user satisfaction as it is more intuitive than the alphabetical sorting for users.