----------------------------------------
* CRM-14920: Custom Searches do not honor user sort order
https://issues.civicrm.org/jira/browse/CRM-14920
) {
if ($justIDs) {
$selectClause = "contact_a.id as contact_id";
- //$sort = 'contact_a.id';
+ // Don't change sort order when $justIDs is TRUE, see CRM-14920.
}
else {
// YOU NEED to select contact_a.id as contact_id, if you want to be able
) {
if ($justIDs) {
$selectClause = "contact_a.id as contact_id";
- $sort = "contact_a.id";
+ // Don't change sort order when $justIDs is TRUE, see CRM-14920.
}
else {
// We select contact_a.id twice. Once as contact_a.id,