logic to call sort entered into Main()