Best way to create a MOC or TOC

Hey guys, I jsut started a Course, and each topic & idea has a note, I have been tagging all notes with “#XYZcourse” and each note if it is a topic it has the header

Up:: “XYZ Course TOC” which has not yet been created

If it is an idea or a subtopic the up:: thing is the Main Topic “up:: Topic 1” but still has the tag:: “XYZ Course”

Is there any way to create a table of contents that outlines this?

I’d love to create the XYZ Course Page and have it

Topic 1

  • Idea 1
  • Idea 2
  • Idea 3
    Topic 2
  • Idea 1
  • Idea 2
    Etc…

IS there an easy way to do this?

I tried searching for the hashtag and dragging the toipiscs to a new page so I can arrange them manually, but I can-t seem to multiple select notes from the search function.

Maybe a data view table?

Thanks