sort items (by path) and content (by name)