summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormr <mr@mrautenberg.de>2011-08-03 14:19:34 +0200
committermr <mr@mrautenberg.de>2011-08-03 14:19:34 +0200
commit808d0e7ccdd16434a3d667dfc8c09858fe646bde (patch)
treee39dca936636876808500d9f28b3d6c148d6e0c8
parentdc36db9026a74fa2c90979b0b4aa9b96ad105234 (diff)
sort tasks for html
-rw-r--r--application.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/application.rb b/application.rb
index 5ec56dc..6d8dccf 100644
--- a/application.rb
+++ b/application.rb
@@ -59,7 +59,7 @@ get '/?' do
LOGGER.debug "list all tasks "+params.inspect
if request.env['HTTP_ACCEPT'] =~ /html/
response['Content-Type'] = 'text/html'
- OpenTox.text_to_html Task.all.collect{|t| t.uri}.join("\n") + "\n"
+ OpenTox.text_to_html Task.all.sort.collect{|t| t.uri}.join("\n") + "\n"
else
response['Content-Type'] = 'text/uri-list'
Task.all.collect{|t| t.uri}.join("\n") + "\n"