summaryrefslogtreecommitdiff
path: root/server/lib/views/staff.js
diff options
context:
space:
mode:
Diffstat (limited to 'server/lib/views/staff.js')
-rw-r--r--server/lib/views/staff.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/lib/views/staff.js b/server/lib/views/staff.js
index 74dd7cd..67193fe 100644
--- a/server/lib/views/staff.js
+++ b/server/lib/views/staff.js
@@ -154,7 +154,7 @@ var staff = module.exports = {
},
ensurePlans: function(req, res, next){
- Plan.find(function (err, plans) {
+ Plan.find({}).sort({ 'level': -1 }).exec(function (err, plans) {
res.locals.plans = (plans || []).map(staff.helpers.plan)
res.locals.plans.sort(function(a,b){ return a.monthly_price })
next()