Sort digits as numbers in collate function