Fixed recursion result order