i have 4 Lists which need to be sorted by Date. One List contains the Filedate,and the others info on Filenamehow without extension ,Size and the last with extension. Now i want to sort the List sorted and the other lists matching the entry Number after sort. I tried with Zip the Listst and then sort, but this didnt work at all.
The Datestring list has Date entries like :
20200329 20200719 20200804 20200919
This is my code how it not works. Am i missing something ?
# ls = [] # loaded filelist
# fs = [] # filename list
# ps = [] # filetype list
# ts = [] # fliedate list
f = open(sys.argv[4], "w")
AB = zip(ts,fs,ps,fz)
AB.sort()
ts[:] = [t[0] for t in AB]
fs[:] = [t[1] for t in AB]
ps[:] = [t[2] for t in AB]
fz[:] = [t[3] for t in AB]