1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-13 10:14:41 +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) = function _sort_impl(lt, by, idx) =
let( let(
dict = [["x", 0], ["y", 1], ["z", 0], ["idx", idx]], dict = [["x", 0], ["y", 1], ["z", 0], ["i", idx]],
i = dict[search(by, dict)[0]][1] i = dict[search(by == "idx" ? "i" : by, dict)[0]][1]
) )
_sort(lt, i); _sort(lt, i);