PHP sorting in joblist page