implement sort by name and type

This commit is contained in:
2023-02-01 16:42:50 +01:00
parent 26069a82a6
commit d9b51c1ac9
2 changed files with 366 additions and 364 deletions

View File

@@ -49,9 +49,11 @@ impl CodeGeneration {
output.append(render_base_types());
output.push();
let types = get_types(schema)?;
let mut types = get_types(schema)?;
//let remaining: Vec<Option<String>> = types.into_iter().map(type_name).collect();
//
types.sort_by_key(|a| a.name.as_ref());
for (handler, types) in self.group_by_handlers(&types) {
for t in types {
if let Some(_) = self.type_name(&t) {