Sort list of time directories in upload script