Is a comma in this sentence required? [closed]

In the first sentence, it is good to have a comma but not wrong to omit it. In the second, there should not be a comma.


When you use "in order to ..." clause at the beginning, you'd better use a comma before starting the main clause.