From 38eeef34478e9bab02a4486051e499daf45e1527 Mon Sep 17 00:00:00 2001 From: mgtennant <100305096+mgtennant@users.noreply.github.com> Date: Wed, 24 Jan 2024 13:45:40 -0800 Subject: [PATCH] sort nfr legal descriptions by parcel id --- backend/src/app.controller.ts | 2 +- frontend/src/report/report.service.ts | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/backend/src/app.controller.ts b/backend/src/app.controller.ts index a121c70c..fceedc37 100644 --- a/backend/src/app.controller.ts +++ b/backend/src/app.controller.ts @@ -9,7 +9,7 @@ export class AppController { getHello(): string { return this.appService.getHello(); } - + // @Get() getHello2(): string { return this.appService.getHello(); diff --git a/frontend/src/report/report.service.ts b/frontend/src/report/report.service.ts index d153e365..d85f19a1 100644 --- a/frontend/src/report/report.service.ts +++ b/frontend/src/report/report.service.ts @@ -350,6 +350,7 @@ export class ReportService { const interestParcels = rawData.interestParcel; let concatLegalDescriptions = ''; if (interestParcels && interestParcels.length > 0) { + interestParcels.sort((a, b) => b.interestParcelId - a.interestParcelId); let legalDescArray = []; for (let ip of interestParcels) { if (ip.legalDescription && ip.legalDescription != '') {