Using an array to sort dates.
Here's an interesting little tidbit I thought I'd pass on. Yesterday I had a case where I needed to select the latest date out of about 4-5 given dates. The dates could range anywhere from today to a year ago. My first inclination was to just have a bunch of CFIFs comparing the dates and filtering through and determine which one was the latest. But then, I thought about how easily arrays can sort values and wondered if I could apply that to dates as well. As it turns out, you can, and it's really simple to do.

