summaryrefslogtreecommitdiff
path: root/httemplate/elements/select-table.html
diff options
context:
space:
mode:
Diffstat (limited to 'httemplate/elements/select-table.html')
-rw-r--r--httemplate/elements/select-table.html1
1 files changed, 1 insertions, 0 deletions
diff --git a/httemplate/elements/select-table.html b/httemplate/elements/select-table.html
index 5d6c4a82c..7339f362c 100644
--- a/httemplate/elements/select-table.html
+++ b/httemplate/elements/select-table.html
@@ -100,6 +100,7 @@ if ( $opt{'records'} ) {
'table' => $opt{'table'},
'hashref' => ( $opt{'hashref'} || {} ),
'extra_sql' => ( $opt{'extra_sql'} || '' ),
+ 'order_by' => ( $opt{'order_by'} || "ORDER BY $name_col" ),
});
}