Javascript Sort Array Of Strings Without Sortinos Closing