diff options
author | Petr Šmerkl <46304018+SveterCZE@users.noreply.github.com> | 2021-05-11 00:06:15 +0200 |
---|---|---|
committer | Petr Šmerkl <46304018+SveterCZE@users.noreply.github.com> | 2021-05-11 00:06:15 +0200 |
commit | 47a79256a25f91e167518cd7acf8bf2ff0f0d977 (patch) | |
tree | ffea3a2c5dc2f55bce0ce4c5ce791c53ee1a663b | |
parent | c5a41439b2033e08d136e0cfef8be02525706673 (diff) | |
download | justice-47a79256a25f91e167518cd7acf8bf2ff0f0d977.tar.gz |
sort files by name
-rw-r--r-- | download_files.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/download_files.py b/download_files.py index ea433e7..3addec3 100644 --- a/download_files.py +++ b/download_files.py @@ -40,6 +40,7 @@ def get_files_list(my_file): for elem in l1: if is_valid_file(elem[1:-1]) == True: valid_files.append(elem[1:-1]) + valid_files.sort() return valid_files def is_valid_file(tested_file): |