Finally got the sort right so the headers line up with the applications.