Open superwebarmy opened 1 year ago
No, actually you can not sort the list of strings by time. Because the strings are only strings and have no information about creation time, modified time or anything else.
You are only able to sort the list with string comparison.
sortedPaths = paths.sort((a,b) => a.compareTo(b));
Hi, I was wondering if we can sort the list of strings by their creation time or modified time. I'm making the use of cache method which returns list of string but it returns in the random order