in src/line.rs [132:147]
fn fmt(&self, f: &mut Formatter) -> std::fmt::Result {
// Write out all inline records first, and then all line records.
// Sort the inlines by the first range's rva and by call depth.
let mut inlines: Vec<(&_, &_)> = self.inlines.iter().collect();
inlines.sort_by_key(|(site, ranges)| (ranges.first().unwrap().rva, site.call_depth));
for (site, ranges) in inlines {
write_inline_record(site, ranges, f)?;
}
// Write out the line records.
for line in &self.lines {
write_line_record(line, f)?;
}
Ok(())
}