sort by filename when dimensions are same