Order By using related objects

[prev] [thread] [next] [Date index for 2005/04/13]

From: d. Taylor Singletary
Subject: Order By using related objects
Date: 18:15 on 13 Apr 2005
Hi all, I come again to you seeking help. Have any of you tried
something like this, and what is the best way?

First, I'm filling array with the results of a search:

my @vendors = express::DBI::VendorCat->search(catid=>$catid);

But I want the array to be sorted by the name of the vendor. The name of
the vendor is found through a pointer from VendorCat. I want to sort by
express::DBI::VendorCat::vndrid->busname. 

my @vendors =
Conquent::Parser::express::DBI::VendorCat->search(catid=>$catid,
{ order_by=>'vndrid->busname' }); 

But that doesn't seem to me that it would work. Is it possible to do
this with the order_by argument? Or should I just sort it after I've
filled the array?

Thanks,
d. Taylor SIngletary


Order By using related objects
d. Taylor Singletary 18:15 on 13 Apr 2005

Re: Order By using related objects
Mark Addison 18:31 on 13 Apr 2005

Re: Order By using related objects
d. Taylor Singletary 19:23 on 13 Apr 2005

Generated at 12:49 on 16 Apr 2005 by mariachi v0.52