Switching things around on-screen (rows vs columns, etc.) will not change the order in the source code; thus, screen readers and search engines will read things in the code order. If the order of items affects how someone might understand the content, it’s best to change the source code/content, not just the visual display.