Order cars by name
This commit is contained in:
@@ -81,7 +81,8 @@ export class EditEntryComponent implements OnInit {
|
||||
.getAll()
|
||||
.pipe(
|
||||
takeUntilDestroyed(),
|
||||
map(response => response.cars),
|
||||
map(response => response.cars
|
||||
.sort((a, b) => a.name.localeCompare(b.name))),
|
||||
tap(cars => {
|
||||
const selectedCarId = this.selectedCarService.getSelectedCarId();
|
||||
|
||||
|
||||
@@ -99,6 +99,8 @@ export class EntriesComponent implements OnInit {
|
||||
this.cars$ = this.entriesOverviewService.getCars()
|
||||
.pipe(
|
||||
takeUntilDestroyed(),
|
||||
map((cars) => cars
|
||||
.sort((a, b) => a.name.localeCompare(b.name))),
|
||||
tap((cars) => {
|
||||
const selectedCarId = this.selectedCarService.getSelectedCarId();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user