Browse files

Sort jobs by name

  • Loading branch information...
1 parent 1d0b8dc commit 615e5caaaa70f644865cac242eb8ce0c71775f67 @seven1m committed Apr 20, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 app/controllers/jobs.coffee
View
2 app/controllers/jobs.coffee
@@ -5,7 +5,7 @@ Paginator = require 'paginator'
module.exports =
index: (req, res) ->
- models.job.where('deleted', false).run (err, jobs) ->
+ models.job.where('deleted', false).sort('name', 1).run (err, jobs) ->
if(err)
res.send 'error retreiving jobs', 500
else

0 comments on commit 615e5ca

Please sign in to comment.