I'm trying to read a grid in the following order: - left bottom - Left top - Center top - Right top - Right bottom
I have div blocks with the same class name ".block" which I can loop through and extract the content. But this happens in a random order. I would like to have the content in a string on the above specified order.
For example lets say we have the current situation:
All blocks have the same classname. If I loop through the class, the result must be: 1-2-3-4-5-6-7
In this example I used numbers inside the blocks (which would be easy with ordering) but in fact its dynamic text whats inside the blocks so it could be "hi-demo-test-how-are-you-good" with "hi" being positioned on bottom left and "good" bottom right.