diff --git a/src/product/product.service.ts b/src/product/product.service.ts index 43cecdf..28fd04d 100644 --- a/src/product/product.service.ts +++ b/src/product/product.service.ts @@ -263,9 +263,8 @@ export class ProductService { ) .select(['product.id']) .addSelect(['product.name', 'product.code', 'sub_categories.name']) - .addSelect( - '(current_price.price + current_price.mark_up_price) as price', - ); + .addSelect('(current_price.price + current_price.mark_up_price) as price') + .orderBy('price', 'ASC'); if (subCategories != 'null' && subCategories) { baseQuery.andWhere('product.sub_categories_id = :id', {