Hello list,

I´m trying to make a TOP10 list but don´t know how :=(

First I select the partners:
    partners = db(db.partners.id > 0).select()

    for partner in partners:
        sales = db(db.sales.partner == partner).select()

make some calculations and get a value for the customer. Where do I store this value and how do I sort the list of partners so I get a TOP10 list?

Somehow this doesn´t feel like a big deal to implement but can´t get started.


Kenneth

Reply via email to