Welcome to WebmasterWorld Guest from 54.146.246.4

Forum Moderators: coopster & jatar k

Message Too Old, No Replies

Sorting a Zend DbTable Rowset

should be simple but im not sure lol

     

delboy1978uk

10:33 am on May 21, 2012 (gmt 0)

10+ Year Member



hi guys, Ive started using Zend Db Table Relationships now for grabbing all my data, but i have a question:

My db has properties, tenants, and accounts

each property has a tenant
each tenant has several months worth of accounts

i'm trying to grab everything in order of money owed
so i fetch properties,
and foreach i grab the current tenant and then grab the accounts for that tenant

but i need to sort all the properties by the tenant who owes the most, and im not sure how to do that from a zend rowset thats already been fetched. any ideas?

coopster

10:59 pm on Jun 1, 2012 (gmt 0)

WebmasterWorld Administrator coopster is a WebmasterWorld Top Contributor of All Time 10+ Year Member



I don't use Zend ...
*bump*
No other Zend users around here?