Skip to content

Commit 5361925

Browse files
authored
Update build.py
close #327
1 parent 3c92524 commit 5361925

File tree

1 file changed

+3
-3
lines changed
  • onlinejudge_verify/documentation

1 file changed

+3
-3
lines changed

onlinejudge_verify/documentation/build.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,9 +107,9 @@ def ext(relative_path: pathlib.Path) -> Dict[str, Any]:
107107
'icon': _get_verification_status_icon(stat.verification_status),
108108
}
109109

110-
data['_extendedDependsOn'] = [ext(path) for path in stat.depends_on]
111-
data['_extendedRequiredBy'] = [ext(path) for path in stat.required_by]
112-
data['_extendedVerifiedWith'] = [ext(path) for path in stat.verified_with]
110+
data['_extendedDependsOn'] = sorted([ext(path) for path in stat.depends_on], key=lambda x: x['path'])
111+
data['_extendedRequiredBy'] = sorted([ext(path) for path in stat.required_by], key=lambda x: x['path'])
112+
data['_extendedVerifiedWith'] = sorted([ext(path) for path in stat.verified_with], key=lambda x: x['path'])
113113

114114
return data
115115

0 commit comments

Comments
 (0)