diff --git a/glob/README.md b/glob/README.md index 228d7e1..8e510db 100644 --- a/glob/README.md +++ b/glob/README.md @@ -45,6 +45,17 @@ print(list) ['Testfile_001.mat', 'Testfile_002.mat', 'Testfile_010.mat', 'Testfile_003.mat'] ``` +### Sorting the filenames + +```python +import glob + +list = sorted(glob.glob("*.mat")) +print(list) +``` + + +