Here's an example how we added sorting to vue-tree-table-component:

Class
Teacher
Student Nr
Student Name
Average Grade
1A
Node Postgres
1B
Travis Jenkins

We implemented sorting on two levels:

  • table level: we implemented custom TableHeader, which on click of button sorted the table-data
  • node level: we implemented custom TableNode, which on click of button sorted its children

You can find an implementation of that here