This post is more than 2 years old.
Today's Friday Puzzler should be one of the simpler ones I've posted. While having a random Facebook discussion (as if there are any other sort), the topic of sorting came up. I thought it might be an interesting challenge to write code that determines if a list of data is sorted and report back on what type of sort was being used. While there are probably more, I can think of the following sort types:
- case sensitive text ascending
- case sensitive text descending
- case insensitive text ascending
- case insensitive text descending
- numeric ascending
- numeric descending