]> git.mjollnir.org Git - moodle.git/commitdiff
Now we are using the new sql_order_by_text() function
authorstronk7 <stronk7>
Sat, 9 Sep 2006 13:53:52 +0000 (13:53 +0000)
committerstronk7 <stronk7>
Sat, 9 Sep 2006 13:53:52 +0000 (13:53 +0000)
when we need to be able to order by TEXT columns in a
cross-db behaviour. More info:
http://docs.moodle.org/en/XMLDB_Problems#ORDER_BY_text_columns

lib/rsslib.php

index ec58cb567f4fe8ded4716a08b36aeab00b49b750..070e6a16aae18280c2a3dca8ed2f81ebbabfbfa5 100644 (file)
@@ -402,7 +402,7 @@ function rss_display_feeds($courseid='', $userid='', $rssid='') {
 
     $table->setup();
 
-    $feeds = get_records_select('block_rss_client', $select, 'title');
+    $feeds = get_records_select('block_rss_client', $select, sql_order_by_text('title'));
 
     if(!empty($feeds)) {
         foreach($feeds as $feed) {