Sort 24- multiple alternations