Sorting page directories before creating headline result to avoid mixed up headline-page combinations.