"cave resolve konqueror:4.5::gentoo" gets package order wrong

Description

On a system with no KDE packages currently installed, cave tries to install x11-libs/qt-webkit-4.5.1 before x11-libs/qt-xmlpatterns-4.5.1, even though the former lists the latter in its build&run dependencies. Both paludis and emerge get the order right.