summaryrefslogtreecommitdiffstats
path: root/query.cgi
diff options
context:
space:
mode:
Diffstat (limited to 'query.cgi')
-rwxr-xr-xquery.cgi16
1 files changed, 12 insertions, 4 deletions
diff --git a/query.cgi b/query.cgi
index f8728e9c9..b032a2860 100755
--- a/query.cgi
+++ b/query.cgi
@@ -593,10 +593,18 @@ print "
<NOBR><B>Sort By:</B>
<SELECT NAME=\"order\">
- <OPTION>Bug Number
- <OPTION SELECTED>\"Importance\"
- <OPTION>Assignee
-</SELECT></NOBR>
+";
+
+my $deforder = "'Importance'";
+my @orders = ('Bug Number', $deforder, 'Assignee');
+
+if ($::COOKIE{'LASTORDER'}) {
+ $deforder = "Reuse same sort as last time";
+ unshift(@orders, $deforder);
+}
+
+print make_options(\@orders, $deforder);
+print "</SELECT></NOBR>
<INPUT TYPE=\"submit\" VALUE=\"Submit query\">
<INPUT TYPE=\"reset\" VALUE=\"Reset back to the default query\">
<INPUT TYPE=hidden name=form_name VALUE=query>