My friends arrived earlier than I expected.
If you are not sure of it, let's substitute earlier for sooner in the context and observe.
Grammatically, it's all right. For me, it makes no difference in meaning. As for subtle nuances in meaning, let's wait for other members' comments.
Student or Learner