railsware/js-routes — pull request #50 by alexfarrill (2012-06-14 14:10:08+00:00)
Title: Patch: Sort routes to fix asset pipeline problems across app servers

Hi, this fixes my problem. You will still run into problems if you have name collisions in your routes since I am sorting on key name, but I'm not sure how that should be handled. As long as your named route names are unique though this works.
Thanks
Alex