React Array Sort Method In Js