Change order of middleware nodes