sort subject array alphabetically