We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ee35907 commit 1dc45edCopy full SHA for 1dc45ed
src/Common.jl
@@ -1,5 +1,5 @@
1
2
-export sortVarNested
+export sortVarNested, sortDFG
3
export isPrior, lsfPriors
4
export getData
5
export getVariableType, getSofttype
@@ -82,6 +82,24 @@ function sortVarNested(vars::Vector{Symbol})::Vector{Symbol}
82
return retvars
83
end
84
85
+"""
86
+ $SIGNATURES
87
+
88
+Sort variable (factor) lists in a meaningful way, for example `[:april;:x1_3;:x1_6;]`
89
90
+Notes
91
+- Not fool proof, but does better than native sort.
92
93
+Example
94
95
+`sortDFG(ls(dfg))`
96
97
+Related
98
99
+ls, lsf
100
101
+sortDFG(vars::Vector{Symbol})::Vector{Symbol} = sortVarNested(vars)
102
103
"""
104
$SIGNATURES
105
0 commit comments