Fixes tests after sorting selects