minor random post-merge fixes

This commit is contained in:
Michael Q Larson
2014-12-23 13:30:20 -08:00
parent ef2eba7b14
commit b4be1f859f
4 changed files with 5 additions and 12 deletions

View File

@ -134,7 +134,7 @@ exports.postEmailSignup = function(req, res, next) {
*/
exports.getAccount = function(req, res) {
Challenge.find({}, function (err, c) {
Challenge.find({}, null, { sort: { challengeNumber: 1 } }, function(err, c) {
if (err) {
console.error('Challenge err: ', err);
next(err);