Support submux dispatch
Fix route sorting and pcre pattern compilation