Sort lines of text alphabetically with options for case sensitivity, duplicate removal, and empty line handling