don't assume grep output to be ordered