I’m sorry, I have read this question a million times and even looked at other’s solutions online and I still have absolutely no idea what this question is actually asking.
“Write a sort that takes a list and a function that compares its two arguments and then returns a sorted list.”
The meaning of this sentence is so hard for me to understand. I have written sorts in Haskell and understand the other questions, but what the heck is this talking about?
A function that compares what two arguments? The two arguments of the sort? Two random arguments of the function? Two elements of the list? I am so confused.
If someone understands this, can you please re-word the sentence for me?