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.html14
1 files changed, 8 insertions, 6 deletions
diff --git a/httemplate/elements/select-table.html b/httemplate/elements/select-table.html
index e73638801..5f36a36ef 100644
--- a/httemplate/elements/select-table.html
+++ b/httemplate/elements/select-table.html
@@ -89,12 +89,14 @@ Example:
<OPTION VALUE=""><% $opt{'empty_label'} || 'all' %>
% }
-% foreach my $record ( sort { $a->$name_col() cmp $b->$name_col()
-% || $a->$key() <=> $b->$key()
-% }
-% @records
-% )
-% {
+%# foreach my $record ( sort { $a->$name_col() cmp $b->$name_col()
+%# || $a->$key() <=> $b->$key()
+%# }
+%# @records
+%# )
+%# {
+% # show records in query order, or preserve the order they were given
+% foreach my $record (@records) {
% my $recvalue = $record->$key();
% my $selected;
% if ( $opt{'all_selected'} ) {