Merge branch 'feature/sort-presets' into 'develop'

Feature/sort presets

See merge request tjohn/cc-data!10
This commit is contained in:
Patrick Gebhardt 2020-06-17 20:53:26 +02:00
commit b9c53992f0
2 changed files with 6 additions and 2 deletions

View File

@ -33,5 +33,9 @@ export class PresetService {
this.singlePresets.push(presetMap.get(key)[0]);
}
}
for (let presets of this.multiPresets.values()) {
presets = presets.sort((a, b) => a.value[0] > b.value[0] ? 1 : -1);
}
}
}

View File

@ -13,9 +13,9 @@
"cheap_transportations": "Cheap pubic transport",
"cheap_entertainment": "Cheap entertainment",
"warm": "warm",
"chilly": "chilly",
"chilly": "cold",
"mild:": "mild",
"cold": "cold",
"cold": "freezing",
"sunny": "sunny",
"dark": "dark",
"almost_no_rain": "almost none",