ctyler
4 months ago

How to Sort in a foraech statement

Posted 4 months ago by ctyler

Good morning all, I have something that I want to do but I am having an issue thinking through this and was hoping someone can help me.

So I am working on my permissions page and I have quite few for each role:

assignment_add
assignment_delete
assignment_update
assignment_view
attendance_add
attendance_delete
attendance_ipdate
attendance_view
attendanceSession_add
attendanceSession_delete
attendanceSession_update
attendanceSession_view
certificate_add
certificate_delete
certificate_update
certificate_view
course_add
course_close
course_delete
course_open
course_update
course_view
courseCategory_add
courseCategory_delete 

Just to name a few. On the page they are in 4 rows not in a single list. Anyway, I would like to break these up a little based on the string before the "_". So once the assignment_ is done I would like to insert a break or maybe even create a header before each one. Just to add some separation. Any ideas?

Please sign in or create an account to participate in this conversation.