auto ssubs = new File[_subs.length]; // preallocate sorted subs
size_t ix = 0; foreach (sub; _subs) { ssubs[ix++] = sub; // set new reference to sub } ssubs.sort!((a, b) => (a.timeLastModified > b.timeLastModified)); return ssubs;
auto ssubs = new File[_subs.length]; // preallocate sorted subs
size_t ix = 0; foreach (sub; _subs) { ssubs[ix++] = sub; // set new reference to sub } ssubs.sort!((a, b) => (a.timeLastModified > b.timeLastModified)); return ssubs;