Maybe I’m missing the point, but not understanding where “sorting” is involved in this.