Javascript sorting not working in safari and ions

javascript sort() not working in safari and ios. But its work fine in chropme and android. please help to resolve this issue

please show us an example for that

Thank you I found the solution now its working

Thank for your response. anyway i found a solution