cosnt sortItem = ( names ) =>{ return names.sort(function(first, second) { return first.toLowerCase().localeCompare(second.toLowerCase()) }) } console.log(sortItem(["fine","Hello","I'm","there"]))