Assume I have a following in a MySql table:
In this table the values for some of the records (sub 1-7) may identical or near-identical; as in case of Bill, Bush and Kate. I want to sort the table based on percentage relatedness among the records. As you can see Bill and Kate are nearly identical, which is followed by Bush. The table should be sorted in this order: Bill, Bush, Gate etc. The table contains over 200 records, with many having near-identical values. How can this be done in php? Any ideas?