diff --git a/api/src/modules/sourcing-locations/sourcing-locations.service.ts b/api/src/modules/sourcing-locations/sourcing-locations.service.ts index a7ae1a449..355b0cc24 100644 --- a/api/src/modules/sourcing-locations/sourcing-locations.service.ts +++ b/api/src/modules/sourcing-locations/sourcing-locations.service.ts @@ -255,7 +255,7 @@ export class SourcingLocationsService extends AppBaseService< .sort((a: { locationType: string }, b: { locationType: string }) => { const comparison: number = a.locationType.toLowerCase() < b.locationType.toLowerCase() ? -1 : 1; - return options.sort === 'DESC' ? comparison * -1 : comparison; + return options.sort === 'DESC' ? comparison : comparison * -1; }); return { data: locationTypeParser(locationTypes) };