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