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:
@@ -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);
|
Reference in New Issue
Block a user