I have an array in bash
array=($(ls -At $base/SrcFiles/MoveIT))
I am using the -t modifier to put the filenames in oldest first.
I ahve tried -t and -tr
But the pop side of teh array always pushes out the newest file.
How do i make sure the array is sorted with oldest file first? or at least pops that way