Sorted sketches