Fix sort conditions with binds.