I tend to avoid grocery stores who do that. But in Belgium at least it's a known strategy that half the grocery stores use to make you spend more time looking for stuff.
Luckily there's also a store that avoids it because they want to save time of their employees and customers. So if use their app to make your list and select the location you're going to, the app will arrange your list to be in the order you encounter everything if you follow the lines on the floor.