sort ยุทศาสตร์
This commit is contained in:
parent
e04d5fe1b1
commit
bd00213596
1 changed files with 30 additions and 3 deletions
|
|
@ -43,7 +43,16 @@ export class StrategyController extends Controller {
|
||||||
"strategyChild2s.strategyChild3s.strategyChild4s",
|
"strategyChild2s.strategyChild3s.strategyChild4s",
|
||||||
"strategyChild2s.strategyChild3s.strategyChild4s.strategyChild5s",
|
"strategyChild2s.strategyChild3s.strategyChild4s.strategyChild5s",
|
||||||
],
|
],
|
||||||
order: { createdAt: "ASC" },
|
order: {
|
||||||
|
createdAt: "ASC",
|
||||||
|
strategyChild2s: {
|
||||||
|
createdAt: "ASC",
|
||||||
|
strategyChild3s: {
|
||||||
|
createdAt: "ASC",
|
||||||
|
strategyChild4s: { createdAt: "ASC", strategyChild5s: { createdAt: "ASC" } },
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
const formattedData = listStrategyChild1.map((item) => ({
|
const formattedData = listStrategyChild1.map((item) => ({
|
||||||
|
|
@ -100,7 +109,16 @@ export class StrategyController extends Controller {
|
||||||
"strategyChild2s.strategyChild3s.strategyChild4s",
|
"strategyChild2s.strategyChild3s.strategyChild4s",
|
||||||
"strategyChild2s.strategyChild3s.strategyChild4s.strategyChild5s",
|
"strategyChild2s.strategyChild3s.strategyChild4s.strategyChild5s",
|
||||||
],
|
],
|
||||||
order: { createdAt: "ASC" },
|
order: {
|
||||||
|
createdAt: "ASC",
|
||||||
|
strategyChild2s: {
|
||||||
|
createdAt: "ASC",
|
||||||
|
strategyChild3s: {
|
||||||
|
createdAt: "ASC",
|
||||||
|
strategyChild4s: { createdAt: "ASC", strategyChild5s: { createdAt: "ASC" } },
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
// if (!listStrategyChild1 || listStrategyChild1.length === 0) {
|
// if (!listStrategyChild1 || listStrategyChild1.length === 0) {
|
||||||
|
|
@ -151,7 +169,16 @@ export class StrategyController extends Controller {
|
||||||
"strategyChild2s.strategyChild3s.strategyChild4s",
|
"strategyChild2s.strategyChild3s.strategyChild4s",
|
||||||
"strategyChild2s.strategyChild3s.strategyChild4s.strategyChild5s",
|
"strategyChild2s.strategyChild3s.strategyChild4s.strategyChild5s",
|
||||||
],
|
],
|
||||||
order: { createdAt: "ASC" },
|
order: {
|
||||||
|
createdAt: "ASC",
|
||||||
|
strategyChild2s: {
|
||||||
|
createdAt: "ASC",
|
||||||
|
strategyChild3s: {
|
||||||
|
createdAt: "ASC",
|
||||||
|
strategyChild4s: { createdAt: "ASC", strategyChild5s: { createdAt: "ASC" } },
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
// if (!listStrategyChild1 || listStrategyChild1.length === 0) {
|
// if (!listStrategyChild1 || listStrategyChild1.length === 0) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue