Sort an array of strings alphabetically

Write a function that takes an array of strings as argument. Sort the array elements alphabetically. Return the result.
JavaScript
Console