Create a function in Python to print a sorted list of the given input string.
Input string: computer
def sortString(inputString): 
  
    words = inputString.split() 
    words.sort() 
  
    for i in words: 
        print(i) 
          
sortString(inputString)