This commit is contained in:
Folkert 2021-09-10 15:44:11 +02:00
parent e3b3206286
commit 3a83b0c415

View file

@ -34,7 +34,7 @@ pub fn build_module<'a>(
// file header. Therefore sorting high to low will put other functions before main
//
// This means that for now other functions in the file have to be ordered "in reverse": if A
// uses B, then the name of A must first occur after the first occurence of the name of B
// uses B, then the name of A must first occur after the first occurrence of the name of B
let mut procedures: std::vec::Vec<_> = procedures.into_iter().collect();
procedures.sort_by(|a, b| b.0 .0.cmp(&a.0 .0));