How can I sort or order the result of my query based on the sum of third child of the parent. Please see details below.
sum
What I tried