- fix obsolete handling in case of cycles, also bring installed packages to front
- fix obsolete handling in case of cycles, also bring installed packages to front

jsilhan/libsolv,JacksonIsaac/libsolv,jsilhan/libsolv,JacksonIsaac/libsolv,JacksonIsaac/libsolv,jsilhan/libsolv,jsilhan/libsolv,jsilhan/libsolv,JacksonIsaac/libsolv,jsilhan/libsolv,JacksonIsaac/libsolv