[Dbix-class] natural sort by column

Emily Heureux emily at burnham.org
Fri Jun 13 22:47:23 BST 2008


Ok, I have tried to accomplish my 'natural' sort in mysql, template toolkit,
and in perl to no avail.  I have a result set returned by using search like
this:

 

$rs = $c->model('DB::TableName')->search(.);

 

I have a 'natural sort' function in perl that takes and returns an array
sorted the way a human would sort (john10 would come AFTER john2, etc) but
how do I get my $rs or even $col = $rs->get_column('column name') into a
hash I can use from within perl?

 

-Emily

 

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/dbix-class/attachments/20080613/585d9b1c/attachment.htm


More information about the DBIx-Class mailing list