Sort array in javascript with quotes

Viewed 852

I have an array

var arr = ['hello','"end" two', 'end one', 'yes', 'abc' ];

I need to sort it as shown below

// abc,  end one, "end" two, hello, yes

What should i do?

4 Answers
Related