I have a table on a php page where "Offical_gene_Symbol" column I need to sort "Assending". here is the php block for that particular column.
if($test['test_type_id'] == 1 || $test['test_type_id'] == 5) {
$gene_ids = FetchGenesByPanelTest($test['id']);
$genes = array();
foreach($gene_ids as $gi){
$genes[] = FetchGene($gi);
}
<table>
<tr>
<th>Offical Gene Symbol</th>
<th style="width:200px;">OMIM Id</th>
</tr>
<?php foreach($genes as $gene): ?>
<tr>
<td><a href="/gene-detail.php?id=<?= $gene['id']; ?>&iframe=true&width=790&height=600" rel="prettyPhoto" title="<?= htmlentities($gene['offical_gene_symbol']); ?>"><?= $gene['offical_gene_symbol']; ?></a></td>
<td><a href="http://omim.org/entry/<?= $gene['omim_id']; ?>" target="_blank"><?= $gene['omim_id']; ?></a></td>
</tr>
<?php endforeach; ?>
</table>
Could you please help how can I do that in this code? Thanks in Advance. Updated code.