You are supposed to use both left and right click to sort into the left and right sections. So when both red and green are on screen (for example), you left click red, and right click green to keep them separate while also stopping them from hitting the top of the screen.