Keep constants and types sorted; only functions are unsorted.

This commit is contained in:
KtorZ 2024-08-23 10:30:18 +02:00
parent c3e39301e2
commit 6e67fe837b
No known key found for this signature in database
GPG Key ID: 33173CB6F77F4277
1 changed files with 2 additions and 0 deletions

View File

@ -227,6 +227,7 @@ fn generate_module(
.definitions
.iter()
.flat_map(|def| DocType::from_definition(def, &source_linker))
.sorted()
.collect();
types
.iter()
@ -238,6 +239,7 @@ fn generate_module(
.definitions
.iter()
.flat_map(|def| DocConstant::from_definition(def, &source_linker))
.sorted()
.collect();
constants
.iter()