Skip to content

Commit

Permalink
sort page.assets by filename
Browse files Browse the repository at this point in the history
  • Loading branch information
wold5 committed Jun 29, 2023
1 parent b5a90db commit 8c19d81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/content/src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ pub fn has_anchor(headings: &[Heading], anchor: &str) -> bool {
pub fn find_related_assets(path: &Path, config: &Config, recursive: bool) -> Vec<PathBuf> {
let mut assets = vec![];

let mut builder = WalkDir::new(path).follow_links(true);
let mut builder = WalkDir::new(path).follow_links(true).sort_by_file_name();
if !recursive {
builder = builder.max_depth(1);
}
Expand Down

0 comments on commit 8c19d81

Please sign in to comment.