Skip to content
Snippets Groups Projects
Commit 991038f3 authored by Etienne LOUPIAS's avatar Etienne LOUPIAS
Browse files

fix(print): sort cities for Écully with accent exception

parent e5937936
Branches
Tags
1 merge request!945V3.3.0
<div class="contents">
<div *ngFor="let structuresPairs of structuresByCommunePairs | keyvalue" class="city-block">
<div *ngFor="let structuresPairs of structuresByCommunePairs | keyvalue: compareKeys" class="city-block">
<h3>{{ structuresPairs.key }}</h3>
<div *ngFor="let structuresPair of structuresPairs.value" class="row-unbreakable-block">
<div class="row-grid">
......
......@@ -25,6 +25,11 @@ export class PrintStructuresGridComponent implements OnInit {
}, {});
}
compareKeys(a: { key: string }, b: { key: string }): number {
// Use localeCompare to sort the keys to avoid Écully with accent to be after all the other cities
return a.key.localeCompare(b.key);
}
getServices(structure: Structure): string[] {
const services: string[] = [];
if (structure.hasFreeOnlineHelp()) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment