Created a file with a function that sorts values from low-to-high, or high-to-low