Interaction between lateral sorting in river bends and vertical sorting in dunes