Fixes #2052
Fix typo in getting custom middleware order.
closes #2051
Merge branch 'master' of github.com:balderdashy/sails