From 90f01ccfc08f78757149e2a0fe9e6fd030a25171 Mon Sep 17 00:00:00 2001 From: Josh Date: Tue, 3 Apr 2018 15:04:12 -0500 Subject: [PATCH] Sort job types before rendering into select view When there are hundreds of job types, this makes the gnarly select options easier on the eyes and somewhat manageable. :) --- lib/http/routes/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/http/routes/index.js b/lib/http/routes/index.js index 5fefeecf..5129619e 100755 --- a/lib/http/routes/index.js +++ b/lib/http/routes/index.js @@ -20,7 +20,7 @@ exports.jobs = function( state ) { return function( req, res ) { queue.types(function( err, types ) { res.render('job/list', { - state: state, types: types, title: req.app.get('title') + state: state, types: types.sort(), title: req.app.get('title') }); }); };