updated sorting of list according to last modified.