Create a Shell script that sorts a list of files in ascending or descending order based on their file names, file size, or date modified, and allows for user input to specify the sorting criteria. The script should display the sorted list of files to the console and also provide an option for the user to save the sorted list to a text file. The script should be well-commented and follow best coding practices.
This prompt doesn't seem malicious.