sort data #798
This commit is contained in:
parent
ef01602285
commit
b456fe46ff
2 changed files with 11 additions and 1 deletions
|
|
@ -1121,7 +1121,15 @@ export class PositionController extends Controller {
|
|||
const positions = await this.positionRepository.find({
|
||||
where: { posMasterId: posMaster.id },
|
||||
relations: ["posType", "posLevel", "posExecutive"],
|
||||
order: { lastUpdatedAt: "ASC" },
|
||||
// order: { lastUpdatedAt: "ASC" },
|
||||
order: {
|
||||
posType: {
|
||||
posTypeRank: "ASC"
|
||||
},
|
||||
posLevel: {
|
||||
posLevelRank: "ASC"
|
||||
}
|
||||
},
|
||||
});
|
||||
const formattedData = {
|
||||
id: posMaster.id,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue