generated from nhcarrigan/template
fix: add block body to sort arrow function
This commit is contained in:
@@ -31,6 +31,8 @@ export class Sanctions {
|
|||||||
|
|
||||||
private async loadSanctions(): Promise<void> {
|
private async loadSanctions(): Promise<void> {
|
||||||
const sanctions = await this.sanctionsService.getSanctions();
|
const sanctions = await this.sanctionsService.getSanctions();
|
||||||
this.sanctions = sanctions.sort((a, b) => b.number - a.number);
|
this.sanctions = sanctions.sort((a, b) => {
|
||||||
|
return b.number - a.number;
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user