Php Get Javascript Array Sort Strings Alphabetically Python