Sort arrays of file data as well as objects