Sort tree imports