ast/term: sort set's keys slice on insert (#4028)
Before, we'd sort a set's `keys` slice in-place, and only when it was actually compared to another set. This side-effect of a comparison can be unexpected. Now, we'll keep the `keys` slice sorted by inserting every new element into its sorted position. Analogous to #3823, where we did this with objects' `keys` slices. Signed-off-by: Stephan Renatus <stephan.renatus@gmail.com>
S
Stephan Renatus committed
7b8b6d8faa4437021101bb084efaa2443a1a797c
Parent: c174c2a
Committed by GitHub <noreply@github.com>
on 11/17/2021, 6:54:34 PM