opkg: Implement proper reordering of packages before configuring.