Mixed sorting