I wanted to sort a list by the list.sort() function, to make this sort work i wanted to make it use my own sort:
l->sort([](tree& a, tree& b) {