Skip to content

Commit

Permalink
Sort occurrence table by occid by default
Browse files Browse the repository at this point in the history
This is to fix the issue described at BioKIC/symbiota-docs#635.
  • Loading branch information
zygoballus authored Oct 10, 2024
1 parent db367a2 commit 8808281
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion classes/OccurrenceEditorManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -591,7 +591,7 @@ private function setSqlOrderBy(&$sql){
$sqlOrderBy = 'recordnumber+1';
}
else{
$sqlOrderBy = $orderBy;
$sqlOrderBy = 'occid';
}
if($sqlOrderBy) $sql .= 'ORDER BY (o.'.$sqlOrderBy.') '.$this->qryArr['orderbydir'].' ';
}
Expand Down

0 comments on commit 8808281

Please sign in to comment.