From 808d0e7ccdd16434a3d667dfc8c09858fe646bde Mon Sep 17 00:00:00 2001 From: mr Date: Wed, 3 Aug 2011 14:19:34 +0200 Subject: sort tasks for html --- application.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" -- cgit v1.2.3