sort method

List<T> sort(
  1. T root
)

Implementation

List<T> sort(T root) {
  _order = <T>[];
  if (!visit(root)) {
    return [];
  }
  return _order.reversed.toList();
}