Apply toptobottom-5.patch from Julian.

Refs: #5787

git-svn-id: svn://svn.twistedmatrix.com/svn/Twisted/branches/trial-order-5787@37908 bbbe8e31-12d6-0310-92fd-ac37d47ddeeb