def METHOD_NAME(directory,pattern="txt"):
    dir = []
    dir = os.listdir(directory)
    dir.sort(cmp)
    lfiles = []
    for f in dir:
        if f.find(pattern) != -1:
	    #print f
            lfiles.append(f)
    return lfiles;