Skip to content
Snippets Groups Projects
Commit bc57b2d1 authored by David Smadja's avatar David Smadja
Browse files

Apply parameter children order regardless of parameter type (#368)

parent 2681e417
Branches
Tags
No related merge requests found
Pipeline #22081 passed
......@@ -77,18 +77,13 @@
void,
unknown
> {
console.log({ billParameter })
for (const bothChild of Object.values(
bothFilteredParameter.children ?? [],
).sort((bothChild1, bothChild2) =>
bothChild1.class === bothChild2.class ||
(bothChild1.class !== ParameterClass.Node &&
bothChild2.class !== ParameterClass.Node)
? billParameter.order === undefined
billParameter.order === undefined
? bothChild1.title!.localeCompare(bothChild2.title!)
: compareUsingOrder(billParameter.order, bothChild1, bothChild2)
: bothChild1.class === ParameterClass.Node
? 1
: -1,
: compareUsingOrder(billParameter.order, bothChild1, bothChild2),
)) {
// Notes:
// A reform (bill) parameter is always more complete than a parameter before reform.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment