Please read the following table in HTML format from a webpage and then answer the question in detail according to the table. Each table cell is defined by a <td> and a </td> tag. Each table row starts with a <tr> and ends with a </tr> tag. 'rowspan=m' and 'colspan=n' represents a cell spaning over 'm' rows and 'n' columns.

Webpage title:
1919 Aberdeenshire and Kincardineshire Central by-election
Table title:
Vacancy
Table:
<table id='hittask' contenteditable='False'>
<tr> <th colspan=2 rowspan=1 > Party </th><th colspan=1 rowspan=1 > Candidate </th><th colspan=1 rowspan=1 > Votes </th><th colspan=1 rowspan=1 > % </th><th colspan=1 rowspan=1 > ± </th></tr>
<tr> <td colspan=1 rowspan=1 > C </td><td colspan=1 rowspan=1 > Unionist </td><td class="highlighted"  colspan=1 rowspan=1 > Alexander Theodore Gordon </td><td class="highlighted"  colspan=1 rowspan=1 > 6,546 </td><td colspan=1 rowspan=1 > 52.6 </td><td colspan=1 rowspan=1 >  </td></tr>
<tr> <td colspan=1 rowspan=1 >  </td><td class="highlighted"  colspan=1 rowspan=1 > Liberal </td><td class="highlighted"  colspan=1 rowspan=1 > John Henderson </td><td class="highlighted"  colspan=1 rowspan=1 > 5,908 </td><td colspan=1 rowspan=1 > 47.4 </td><td colspan=1 rowspan=1 >  </td></tr>
<tr> <th colspan=3 rowspan=1 > Majority </th><td class="highlighted"  colspan=1 rowspan=1 > 638 </td><td colspan=1 rowspan=1 > 5.2 </td><td colspan=1 rowspan=1 > − </td></tr>
<tr> <th colspan=3 rowspan=1 > Turnout </th><td colspan=1 rowspan=1 > 12,454 </td><td colspan=1 rowspan=1 >  </td><td colspan=1 rowspan=1 > − </td></tr>
<tr> <td colspan=1 rowspan=1 >  </td><td colspan=2 rowspan=1 > Unionist hold </td><th colspan=1 rowspan=1 > Swing </th><td colspan=1 rowspan=1 >  </td><td colspan=1 rowspan=1 >  </td></tr>
<tr> <td colspan=6 rowspan=1 > C indicates candidate endorsed by the coalition government. </td></tr>
</table>
Question:
How did Gordon do compared to John Henderson in the 1919 Aberdeenshire and Kincardineshire Central by-election?
Answer:
The Liberal candidate John Henderson lost to Gordon by the margin of 638 votes in the 1919 Aberdeenshire and Kincardineshire Central by-election. John Henderson obtained 5908 votes whereas Gordon obtained 6546 votes.