Avoid sorting by type

Organizing items according to category or type can be useful when quantities are small, but the infinite content anti-pattern emerges as collections grow larger and the items begin to disappear. Better to choose more meaningful indicators of context: sometimes this is time, sometimes relevence, sometimes manual ordering and organization.

In the domain of programming, the common paradigms of 'All the CSS files in one folder; All the JavaScript in one folder; All the tests in one folder' or 'src; lib; bin' does not illuminate the ['semantic' or 'business logic'] relationships between those files: it's a convenient organization for scripts and automated workflows—useful to machines more than humans. See Universal project folder structure for an alternative.

If it makes sense to sort by type, break down larger lists into into smaller ones to keep them relatively finite and small.