2
0
mirror of https://github.com/ACSPRI/queXS synced 2024-04-02 12:12:16 +00:00

Order sample list the same way as for other items (most recent first)

This commit is contained in:
Adam Zammit
2019-11-08 15:01:30 +11:00
parent b956565ca1
commit 1d2010197b

View File

@@ -231,7 +231,7 @@ xhtml_head(T_("Search the sample"),true,$css,$js_head);
echo "<a href='' onclick='history.back();return false;' class='btn btn-default pull-left' ><i class='fa fa-chevron-left text-primary'></i>&emsp;" . T_("Go back") . "</a>";
$sql = "SELECT sample_import_id as value,description, CASE WHEN sample_import_id = '$sample_import_id' THEN 'selected=\'selected\'' ELSE '' END AS selected
FROM sample_import ORDER BY description ASC";
FROM sample_import ORDER BY sample_import_id DESC";
$r = $db->GetAll($sql);
if(!empty($r))