       index : pattern
 
   buildRouting : ->
-    routeToMethod = @routeToMethod.sort().reverse()
+    orderedRouteNames = Underscore.keys( @routeToMethod ).sort().reverse()
     @avaiableRoutes = []
-    for pattern of routeToMethod
+    for pattern in orderedRouteNames 
       @avaiableRoutes.push @contructRoutingForPattern( pattern )
     if global.debugging
       console.log 'DEBUG: buildRouting'

        response.end()

  createServer : ( serverPort ) ->
    Common.Http.createServer( @dispatchRequest.bind( this ) ).listen( serverPort )

module.exports = Arcabouco

    ControllerObject.bootstrap( this ) if ControllerObject.bootstrap
    @parseControllerRoutes @controllerInstances.push(ControllerObject)-1

  mountApplication : ( application ) ->
    console.log 'App Place Holder'

#  mountApplicationWithObject
#  mountApplicationWithFile

  contructRoutingForPattern : ( pattern ) ->
    params = []
    buildPattern = pattern.replace /\{(.*?)\}/g,
