1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-07-31 20:10:36 +02:00

change default value

This commit is contained in:
Justin Lin
2019-06-29 10:29:37 +08:00
parent e45c16fe3f
commit b1c3e371a3

View File

@@ -8,7 +8,7 @@ function _sort(lt, i) =
)
concat(_sort(before, i), [pivot], _sort(after, i));
function sort(lt, by, idx = -1) =
function sort(lt, by = "idx", idx = 0) =
let(
dict = [["x", 0], ["y", 1], ["z", 0], ["idx", idx]],
i = dict[search(by, dict)[0]][1]