stream msort