This is a bit tricky as we are currently using get_query_for_pkgnames() to get 
the recommended items. This does
not preserve the order. We would have to use a different approach like:
def get_ordered_query_list_for_pkgnames(pkgnames):
    query_list = []
    for pkgname in pkgnames:
        query = xapian.Query("XP" + pkgname)
        query = xapian.Query(xapian.Query.OP_OR,
                             query,
                             xapian.Query("AP" + pkgname))
        query_list.append(query)
    return query_list

instead to preserve the order.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/955402

Title:
  Recommendations on their own screen are differently ordered from the
  home screen

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/software-center/+bug/955402/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to