Fix path sorting.