title: zend routes ini load routes by order according to priority.
body: <p>Zend Project with multiple modules and every modules have its own routes.ini defined inside it. and every routes.ini file is being loaded using following script in module based bootstrap files.  </p>
  
  <pre><code> protected function _initRoutes() {
              $frontController = Zend_Controller_Front::getInstance();
              $router = $frontController-&gt;getRouter();
              $routerDir = realpath(dirname(__FILE__)). "/configs/routes/moduleRoutes.ini";
              $config = new Zend_Config_Ini($routerDir,'production');
              $router-&gt;addConfig($config,'routes');
      }
  </code></pre>
  
  <p>and All routes are being loaded without order. because Routes are checked in reverse order of loaded sequence and it check/execute those routes first which it should check/execute later. </p>
  
  <p>Is there a way that I can add a orderBy bit (1,2,3,4...) with every route in routes.ini file of each module and load them in specific order so that It will check the routes in sequence I define. </p>
  
  <p>typical routes.ini file of modules looks like this. </p>
  
  <pre><code>routes.frontindex.type = "Zend_Controller_Router_Route_Regex"
  routes.frontindex.route = "/?(?!login/)([a-zA-Z0-9_-]+)?/?([a-zA-Z0-9_-]+)?/?([0-9_-]+)?"
  routes.frontindex.defaults.module = mymodule1
  routes.frontindex.defaults.controller = mycontroller1
  routes.frontindex.map.page = 1
  
  routes.siteimage.type = "Zend_Controller_Router_Route_Regex"
  routes.siteimage.route = "siteimage/?([a-zA-Z0-9_-]+)?/?(jpg|png|gif)?"
  routes.siteimage.defaults.module = mymodule1
  routes.siteimage.defaults.controller = mycontroller2
  routes.siteimage.defaults.action = getimage
  routes.siteimage.map.imageid = 1
  
  
  routes.sitemapseo.type = "Zend_Controller_Router_Route_Static"
  routes.sitemapseo.route = "sitemap.xml"
  routes.sitemapseo.defaults.module = mymodule1
  routes.sitemapseo.defaults.controller = mycontroller3
  routes.sitemapseo.defaults.action = sitemap
  </code></pre>