Weak selections and weak orderability of function spaces