1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-12 17:54:18 +02:00

fix "search term not found"

This commit is contained in:
Justin Lin
2020-01-27 12:11:03 +08:00
parent 69e8910c1b
commit a42fa85fae

View File

@@ -10,7 +10,7 @@ function _sort(lt, i) =
function _sort_impl(lt, by, idx) =
let(
dict = [["x", 0], ["y", 1], ["z", 0], ["idx", idx]],
i = dict[search(by, dict)[0]][1]
dict = [["x", 0], ["y", 1], ["z", 0], ["i", idx]],
i = dict[search(by == "idx" ? "i" : by, dict)[0]][1]
)
_sort(lt, i);