Sort directory contents