fix packet ordering in output from packetbuffer