Hi there,
I have a below challenge in front of me. When ever the user inputs a value from source, that value should be first in the destination and the rest of source values should be sorted as below. Any inputs please. Below are examples
<table>
<thead>
<tr>
<th class="Source-cell">Source</th>
<th class="Input Cell-cell">Input Cell</th>
<th class="Output-cell">Output</th>
</tr>
</thead>
<tbody>
<tr class="firstRow">
<td class="Source-cell">abc</td>
<td class="Input Cell-cell">abc</td>
<td class="Output-cell">abc</td>
</tr>
<tr>
<td class="Source-cell">xyz</td>
<td class="Input Cell-cell"></td>
<td class="Output-cell">efg</td>
</tr>
<tr class="lastRow">
<td class="Source-cell">efg</td>
<td class="Input Cell-cell"></td>
<td class="Output-cell">xyz</td>
</tr>
</tbody>
</table>
<table>
<thead>
<tr>
<th class="Source-cell">Source</th>
<th class="Input Cell-cell">Input Cell</th>
<th class="Output-cell">Output</th>
</tr>
</thead>
<tbody>
<tr class="firstRow">
<td class="Source-cell">abc</td>
<td class="Input Cell-cell">xyz</td>
<td class="Output-cell">xyz</td>
</tr>
<tr>
<td class="Source-cell">xyz</td>
<td class="Input Cell-cell"></td>
<td class="Output-cell">abc</td>
</tr>
<tr class="lastRow">
<td class="Source-cell">efg</td>
<td class="Input Cell-cell"></td>
<td class="Output-cell">efg</td>
</tr>
</tbody>
</table>
I have a below challenge in front of me. When ever the user inputs a value from source, that value should be first in the destination and the rest of source values should be sorted as below. Any inputs please. Below are examples
<table>
<thead>
<tr>
<th class="Source-cell">Source</th>
<th class="Input Cell-cell">Input Cell</th>
<th class="Output-cell">Output</th>
</tr>
</thead>
<tbody>
<tr class="firstRow">
<td class="Source-cell">abc</td>
<td class="Input Cell-cell">abc</td>
<td class="Output-cell">abc</td>
</tr>
<tr>
<td class="Source-cell">xyz</td>
<td class="Input Cell-cell"></td>
<td class="Output-cell">efg</td>
</tr>
<tr class="lastRow">
<td class="Source-cell">efg</td>
<td class="Input Cell-cell"></td>
<td class="Output-cell">xyz</td>
</tr>
</tbody>
</table>
<table>
<thead>
<tr>
<th class="Source-cell">Source</th>
<th class="Input Cell-cell">Input Cell</th>
<th class="Output-cell">Output</th>
</tr>
</thead>
<tbody>
<tr class="firstRow">
<td class="Source-cell">abc</td>
<td class="Input Cell-cell">xyz</td>
<td class="Output-cell">xyz</td>
</tr>
<tr>
<td class="Source-cell">xyz</td>
<td class="Input Cell-cell"></td>
<td class="Output-cell">abc</td>
</tr>
<tr class="lastRow">
<td class="Source-cell">efg</td>
<td class="Input Cell-cell"></td>
<td class="Output-cell">efg</td>
</tr>
</tbody>
</table>