Git commits in Moodle 2.5.2 by Simon Coggins

commit d16c91e919dea0e2601f2287922d8b9c460787dc
Author: Simon Coggins <simon.coggins@totaralms.com>
Date:   Thu, 15 Aug 2013 07:54:19 +0800
Tag:    v2.5.2

MDL-39572: Fix sql_order_by_text() to use length argument correctly

commit b9d40871f0bab0784e2031e5efea255fd8dbd16a
Author: Simon Coggins <simon.coggins@totaralms.com>
Date:   Thu, 15 Aug 2013 07:54:10 +0800
Tag:    v2.5.2

MDL-39572: Fix existing tests and add more to demonstrate issue with sql_order_by_text()