Git commits in Moodle 2.4.6 by Simon Coggins

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

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

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

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