Our league schedule generator ranked teams level on points by a mini-table of the games among them. If that left two teams still level, it fell straight to overall goal difference. Football bodies such as UEFA and FIFA instead apply the mini-table again to just the teams still tied.
We changed standings to do that, then compared old and new over 200,000 random six-team leagues: 321 tables ranked differently. The smallest is now a test. Made-up results only; no real league's table has been checked yet.