Fix assets._resolve_tree to return a sorted list