aboutsummaryrefslogtreecommitdiff
path: root/pollhead.rb
diff options
context:
space:
mode:
Diffstat (limited to 'pollhead.rb')
-rw-r--r--pollhead.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/pollhead.rb b/pollhead.rb
index 88ca587..9afd8b3 100644
--- a/pollhead.rb
+++ b/pollhead.rb
@@ -60,7 +60,7 @@ class PollHead
end
ret = "<tr>"
ret += "<th><a href='?sort=name'>Name #{sortsymb(scols,"name")}</a></th>\n" unless showeditbuttons
- @data.each{|columntitle,columndescription|
+ @data.sort.each{|columntitle,columndescription|
ret += "<th"
ret += " id='active' " if activecolumn == columntitle
ret += ">"