* a_dir is the name of the array created by ADIR() lnitems = ALEN(a_dir, 1) + ALEN(a_dir, 2) = ASORT(a_dir, 3, lnitems, 1)Keeping in mind that this is purely by date, so two files with the same date may not be sorted correctly. In order to do that, you'd have to create a date/time type.