Sorting Nodes in a Hierarchical Layout on Vertex

thank you for your reply.
I have attached images showing the current state and the ideal outcome.
I would like to sort items in ascending or descending order based on a specific property when displayed in a hierarchical structure.