Code for sort update delete items in tree

connectors does’t supply sorting of tree only update insert and delete
the is a subject in this forum for sorting


but the insert/update/delete functions are not provided
i want to integrate these 2 groups of function in one tree in php code
any idea making this

thank you

any ideas about that?