title: does the order of routes matter in Express?
body: <p>im trying to build this simple CMS with Restfull routes in Express.js ,</p>
  
  <p>it was working just fine . then i tried to change it a lil bit so that my routes get neater(or not) .so i moved <code>router.get('/new')</code> route below <code>router.post('/')</code> route and it just stopped working as normal. when i try to get <code>/new</code> route the request goes to <code>router.get('/')</code> </p>
  
  <p>this is the related part of my <code>app.js</code> (removed the unnessary parts) </p>
  
  <pre><code>var express=require('express'),
  blogRoutes =require('./routes/blogs.js'),
  app        =express();
  
  app.use('/blogs',blogRoutes);
  </code></pre>
  
  <p>and this is my blogs route in <code>blogs.js</code> file (removed unnessary parts)</p>
  
  <pre><code>var express = require('express'),
      router  = express.Router();
  
  
  router.get('/',function(req,res){...});
  router.get('/:id',function(req,res){...});
  
  router.post('/',function(req,res){...});
  router.get('/new',function(req,res){...});
  
  router.get('/:id/edit',function(req,res){...});
  router.put('/:id',function(req,res){...});
  router.delete('/:id',function(req,res){...});
  </code></pre>
  
  <p>so i want to know how does this work cuz i did not find anything usefull about the order of routes other than the RESTfull routes images on net that new is before create routes.yet it does make any sense why it can't process it correctly .</p>