You can sort date columns in wide format by rearranging the columns based on the dates. Here's how you can do it in R:
293 chars6 lines
This code will rearrange the columns of the data frame df
in ascending order based on the dates in the column names.
gistlibby LogSnag