I know it doesn't look pretty, but it works... The answer is just number order and it starts at the top on the left side. Every time you move to a different row, start from the left again.
Made for the Journey Through Scratch Collab. Want to join? Comment us on https://scratch.mit.edu/studios/51334256/