gyrojeff commited on
Commit
cf70bb7
·
1 Parent(s): 06c5939

fix: `os.listdir` and `os.walk` in arbitrary order

Browse files
Files changed (1) hide show
  1. 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