From ef66fb393852ac505488c6b73c46e6671766b4c4 Mon Sep 17 00:00:00 2001 From: "andy.boot" Date: Mon, 23 Dec 2019 15:49:26 +0000 Subject: [PATCH] Remove useless sort The data coming in is already sorted. We should not need to sort it a second time --- src/main.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 90a6030..ce51d69 100644 --- a/src/main.rs +++ b/src/main.rs @@ -133,7 +133,6 @@ fn build_tree(biggest_ones: Vec<(String, u64)>, depth: Option) -> Node { children: Vec::default(), }; recursively_build_tree(&mut top_parent, n, depth); - top_parent.children.sort_unstable() } top_parent }