sort จังหวัด
This commit is contained in:
parent
d57d4220dd
commit
c5e99ee771
3 changed files with 3 additions and 3 deletions
|
|
@ -41,7 +41,7 @@ export class DistrictController extends Controller {
|
|||
async GetResult() {
|
||||
const _district = await this.districtRepository.find({
|
||||
select: ["id", "name", "createdAt", "lastUpdatedAt", "createdFullName", "lastUpdateFullName"],
|
||||
order: { createdAt: "ASC" },
|
||||
order: { name: "ASC" },
|
||||
});
|
||||
return new HttpSuccess(_district);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -41,7 +41,7 @@ export class ProvinceController extends Controller {
|
|||
async GetResult() {
|
||||
const _province = await this.provinceRepository.find({
|
||||
select: ["id", "name", "createdAt", "lastUpdatedAt", "createdFullName", "lastUpdateFullName"],
|
||||
order: { createdAt: "ASC" },
|
||||
order: { name: "ASC" },
|
||||
});
|
||||
return new HttpSuccess(_province);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -41,7 +41,7 @@ export class SubDistrictController extends Controller {
|
|||
async GetResult() {
|
||||
const _subDistrict = await this.subDistrictRepository.find({
|
||||
select: ["id", "name", "createdAt", "lastUpdatedAt", "createdFullName", "lastUpdateFullName"],
|
||||
order: { createdAt: "ASC" },
|
||||
order: { name: "ASC" },
|
||||
});
|
||||
return new HttpSuccess(_subDistrict);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue