The table rows represent an animal species. The cells within a row represent traits of that species.
User data is compared against the corresponding data in row cell of the table (http://virginianaturalhistorysociety.com/temp/table.png)
When user data matches the corresponding cell in a row a 1 is returned, else a 0. Table rows are then sorted by highest score (most matches) and displayed to the user.
For example:
The user data = Sandhills, Slender, Smooth, Uniform, Brown, White
The user data is compared against the corresponding data in each row cell of the table (http://virginianaturalhistorysociety.com/temp/table.png)
Species (row) one has 3 matches
Species (row) two has 4 matches
Species (row) three has 6 matches
Species (row) four has 3 matches
Rows would be sorted by the number of matches:
1. Species (row) three has 6 matches
2. Species (row) two has 4 matches
3. Species (row) one has 3 matches
4. Species (row) four has 3 matches