Title: Adaptive sorting