sessions with js

how would you suggest to order the sections in a course if,
a section can be in two courses at different places?

Assuming a Course has a ManyToMany relationship with a Section, then your sequencing would be an additional field within the join table between them (the “through” table).