Revert "Sort selections in order of appearance before applying transformSecondarySketchLinesTagFirst"

This reverts commit b1ccc6df0f.
This commit is contained in:
Frank Noirot
2024-10-10 20:35:15 -04:00
parent cc4345b7c3
commit e8a9fb7f55

View File

@ -1559,9 +1559,7 @@ export function transformSecondarySketchLinesTagFirst({
}
| Error {
// let node = structuredClone(ast)
const primarySelection = selectionRanges.codeBasedSelections.sort(
(a, b) => a.range[0] - b.range[0]
)[0].range
const primarySelection = selectionRanges.codeBasedSelections[0].range
const _tag = giveSketchFnCallTag(ast, primarySelection, forceSegName)
if (err(_tag)) return _tag