Added ordering of character columns in ldat