Sort the rest API routes so that they are in a stable order.

Addresses issue #494.
You're right.  I changed what I was doing somewhere along the way and didn't adjust.