Stop using modified date as a key in array by using an assoc array. Add sizes, dates and filenames as items in that array. Ditch new array, sizes array and ordered array for a single collection that we manipulate with usort. Lisitng array for display is then built off this array.