I have to sort an array of strings like this:
var arr = ["akaw","waka","kawa","akwa"];
The type of sort must be by a specific letter, W in this case so my function must return this array:
arr = ["waka","kawa","akwa","akaw"];
It's a dynamic array and I don't know the number of words in array and if each words have no letter W, one W or some W.
Do you know a type of sort function to do that?
Thx!