I had thought initially that having the RNC precede the DNC was a bad idea, but boy how things have changed this weekend!
The order is based on which is the challenging party. Challenger gets to go first.