They do it this way in Japan. The solution is simple: you take everything, move to the self-bagging area (most supermarkets are self-bagging), and do your sorting and tidying there.
Just a few tables to get things in order before leaving the store.
Not really sure why people are putting away their money while still standing in line anyways. I just step out of the way and let the next person go while I put away my cash and stuff.