Getting the difference rating between two strings

don’t numbers count as characters for the purposes of table.sort