driver-legacy/src/main/com/mongodb/gridfs/GridFS.java
public List<GridFSDBFile> find(final String filename, final DBObject sort) {
        return find(new BasicDBObject("filename", filename), sort);
    }
public List<GridFSDBFile> find(final String filename, final DBObject sort) {
        return find(new BasicDBObject("filename", filename), sort);
    }
public List < GridFSDBFile > find ( final String filename , final DBObject sort ) { return find ( new BasicDBObject ( "filename" , filename ) , sort ) ; }
Finds a list of files matching the given filename.

@param filename the filename to look for
@param sort     the fields to sort with
@return list of gridfs files
@throws com.mongodb.MongoException if the operation fails
Finds a list of files matching the given filename .