Put command packets in correct order