commit | 8c5f2d05c3625847625def050a4f12b28234b250 | [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 | 6a71c2bfcf4a9e129c19cff7fd56e909db5262e2 [diff] |
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