structure.sql

The Key here is to create a view and sort them via Custom Caption in this way you can sort each data by hierarchy :) then just add some field you required.