in reply to how to print sorted data

<=> only sorts numbers; you want to use cmp to sort strings.