commit | 2e65825dc5a8413dc2ff94e39c7d98069183952a | [log] [tgz] |
---|---|---|
author | José Angel Daza <maldini.3@gmail.com> | Fri Aug 14 13:47:27 2020 +0200 |
committer | José Angel Daza <maldini.3@gmail.com> | Fri Aug 14 13:47:27 2020 +0200 |
tree | 5c70fa3c9fd95233205765e3db5d623ae94d02f2 | |
parent | 6d113ec9c8595c5b2771fbb800a9e9647292a5e6 [diff] [blame] |
order of group frequency
diff --git a/DeReKo/explore_dereko.py b/DeReKo/explore_dereko.py index cb6bf51..9fefab0 100644 --- a/DeReKo/explore_dereko.py +++ b/DeReKo/explore_dereko.py
@@ -17,5 +17,5 @@ prefix = fn.split(".")[0] prefix = re.findall("\D+", prefix)[0] file_groups[prefix].append(fn) - for group,files in file_groups.items(): + for group,files in sorted(file_groups.items(), key=lambda x: len(x[1])): print(group, len(files)) \ No newline at end of file