Leyton Orient beat Peterborough United 3-2 at London Road in the first round of the Johnstone’s Paint Trophy.