Add order by section

This commit is contained in:
Thomas Fransolet 2021-07-17 16:44:45 +02:00
parent 59f86a3093
commit 00e281f865

View File

@ -252,7 +252,7 @@ class _MainViewWidget extends State<MainViewWidget> {
print("GET SECTIONS"); print("GET SECTIONS");
print(tabletAppContext.toString()); print(tabletAppContext.toString());
List<SectionDTO> sections = await tabletAppContext.clientAPI.sectionApi.sectionGetFromConfiguration(tabletAppContext.configuration.id); List<SectionDTO> sections = await tabletAppContext.clientAPI.sectionApi.sectionGetFromConfiguration(tabletAppContext.configuration.id);
print(sections); sections.sort((a, b) => a.order.compareTo(b.order));
return sections; return sections;
} }
} }