What’s the proper way to generate an order by like ORDER BY myfunction(col, ?, ?) DESC with bind values in DBIx::Class?
Currently I use literal SQL for this, but that’s not optimal for several reasons.
$rs->search(undef, { order_by => \"myfunction(col, $v1, $v2) DESC" });
I did manage to get
DBIx::Classto generate the correctORDER BY. Here is the code: