fix: `os.listdir` and `os.walk` in arbitrary order
Browse files- font_dataset/font.py +1 -0
font_dataset/font.py
CHANGED
@@ -38,4 +38,5 @@ def load_fonts(config_path="configs/font.yml") -> list[DSFont]:
|
|
38 |
continue
|
39 |
font_list.append(DSFont(file, spec["language"]))
|
40 |
|
|
|
41 |
return font_list
|
|
|
38 |
continue
|
39 |
font_list.append(DSFont(file, spec["language"]))
|
40 |
|
41 |
+
font_list.sort(key=lambda x: x.path)
|
42 |
return font_list
|