Skip to content

Commit

Permalink
feat: order organisations by name
Browse files Browse the repository at this point in the history
  • Loading branch information
joaquimds committed Oct 26, 2023
1 parent d8db501 commit ebf1948
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions web/app/themes/awasqa/src/queries.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,11 @@ function get_org_post_ids($org_id)
}
}

if ($query['post_type'] === 'awasqa_organisation') {
$query['orderby'] = 'post_title';
$query['order'] = 'ASC';
}

/**
* From this point onwards, all the if(...) blocks
* return the $query, to avoid mixed behaviour.
Expand Down

0 comments on commit ebf1948

Please sign in to comment.