การดำเนินการระดับกลาง sorted() จะสร้างสตรีมใหม่พร้อมองค์ประกอบตามลำดับที่เรียงลำดับ เป็นการดำเนินการแบบมีสถานะ — ต้องดูองค์ประกอบทั้งหมดก่อนจึงจะสามารถเปล่งองค์ประกอบใดๆ ได้ ซึ่งมีผลกระทบต่อประสิทธิภาพสำหรับสตรีมขนาดใหญ่หรือไม่มีที่สิ้นสุด

ลำดับที่เป็นธรรมชาติและย้อนกลับ
Full content is available with a subscription.
Get full access to all courses on the platform for one year with a single payment.
Unlike other platforms that charge per course, here you get everything for one price, and after one year of use there will be no automatic charge for the following year.