I've created a linkedlist<FileInfo>
- file info is class which contains following:
class FileInfo {
public String Name;
public Long Length;
public Long LastModified;
public String LockedBy;
}
I need to order this list based on name or lastmodified. How can I achieve this? I can't use
Collections.sort(actTreeFileInfoLinkdList)
because generic is not a string. How can I sort it? I'm new in java, so maybe there is obvious and simple answer I cant figure out, thanks :)