Added path sorting script