Skip to content
Browse files

MDL-39068 use cross-db text column ORDER BY

Credit goes to Valerii Kuznetsov, thanks!
  • Loading branch information...
1 parent 931eff3 commit a68e6026ca0fe82a14e66084911101b71539d584 @stronk7 stronk7 committed Apr 14, 2013
Showing with 3 additions and 0 deletions.
  1. +3 −0 report/configlog/index.php
View
3 report/configlog/index.php
@@ -99,6 +99,9 @@
if ($sort == 'firstname' or $sort == 'lastname') {
$orderby = "u.$sort $dir";
+} else if ($sort == 'value' or $sort == 'oldvalue') {
+ // cross-db text-compatible sorting.
+ $orderby = $DB->sql_order_by_text("cl.$sort", 255) . ' ' . $dir;
} else {
$orderby = "cl.$sort $dir";
}

0 comments on commit a68e602

Please sign in to comment.
Something went wrong with that request. Please try again.