'How can I make 'string' to array true?

let's say we are given a list of lowercase strings,

I want a function to return a list with the strings sorted in alphabetical order, except group all the strings that begin with 'x' at the beginning of the list.

['mix', 'xyz', 'apple', 'xanadu', 'aardvark']



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source