Order of Journal Entries on Sims

NINJA Question - So I am spending some time practicing the SIMS in Ninja and after a few problems i have come across a problem with the grading of the SIMS and how the J/E's are ordered. Bottom line does it matter if the J/E's are in order? For Example I believe it is SIM 30 in FAR. I put Treasury Stock xx Retained Earnings xx APIC xx Cash xx The correct answer is Treasury Stock xx APIC xx Retained Earnings xx Cash xx So as you can see i mixed up APIC and Retained earnings to what the software had and I got that portion wrong. Since I debited the right account and the right amount I believe it should be right. Is there some sort of rule that shows what order the J/E's are supposed to be? I don't want to get something wrong on the test for this small of a reason.