From: Norbert Buchmuller Date: Fri, 21 Nov 2008 23:23:05 +0000 (+0100) Subject: * Documented order_by => [ { -desc => 'col' } ] syntax. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=160dd90a19c870269d74303bcb406d7632e2780f;p=dbsrgits%2FDBIx-Class-Historic.git * Documented order_by => [ { -desc => 'col' } ] syntax. --- diff --git a/lib/DBIx/Class/ResultSet.pm b/lib/DBIx/Class/ResultSet.pm index d7c36f6..f700f7a 100644 --- a/lib/DBIx/Class/ResultSet.pm +++ b/lib/DBIx/Class/ResultSet.pm @@ -2327,6 +2327,10 @@ L) you will need to do C<\'year DESC' > specify an order. (The scalar ref causes it to be passed as raw sql to the DB, so you will need to manually quote things as appropriate.) +If your L version supports it (>=1.50), you can also use +C<{-desc => 'year'}>, which takes care of the quoting for you. This is the +recommended syntax. + =head2 columns =over 4