silverstripe/sapphire — pull request #321 by willrossi (2012-04-15 09:19:19+00:00)
Title: FEATURE: implement SS_List->reverse(). API CHANGE: SQLQuery:: now an arr...

A follow on from my previous reverse implementation.

This one moves orderby to an array, maintains backwards compatibility by an introduction of getOrderBy and SQLQuery::prepareOrderBy() helpers.

This one now also doesn't break with function backed order by clauses as noticed by @sminnee.

Each db module also needs to be merged with the changes. I haven't done mssql yet as don't have a copy working locally.

https://github.com/silverstripe-labs/silverstripe-sqlite3/commit/1233756a5d6d49521b7ccd7fedf06a7714fc19ab
https://github.com/silverstripe/silverstripe-postgresql/commit/200ea235e2b0b7ee28b538f53e403fdfa29bb0cf