Mysql Find Substring Javascript Mdn Array Sort Js