Input Type Checkbox Checked Javascript Array Sort Strings Alphabetically Python