Skip to content

Commit

Permalink
Merge pull request #133 from bcgov/ticdi-37-sorting
Browse files Browse the repository at this point in the history
sort nfr legal descriptions by parcel id
  • Loading branch information
mgtennant authored Jan 24, 2024
2 parents c4cd5d1 + 38eeef3 commit bc847ee
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion backend/src/app.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export class AppController {
getHello(): string {
return this.appService.getHello();
}

//
@Get()
getHello2(): string {
return this.appService.getHello();
Expand Down
1 change: 1 addition & 0 deletions frontend/src/report/report.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 != '') {
Expand Down

0 comments on commit bc847ee

Please sign in to comment.