Permalink
Browse files

making the list of talks sort by date, newest first, for listing talk…

…s by a particular speaker
  • Loading branch information...
1 parent 20c29e5 commit d5845bfc73e514e918122a55ad9eafcd960ea82a @lornajane lornajane committed May 2, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/api-v2/models/TalkMapper.php
@@ -164,7 +164,8 @@ public function getTalksBySpeaker($user_id, $resultsperpage, $start, $verbose =
. 'e.active = 1 and '
. '(e.pending = 0 or e.pending is NULL) and '
. '(e.private <> "y" or e.private is NULL) and '
- . 'ts.speaker_id = :user_id';
+ . 'ts.speaker_id = :user_id '
+ . 'order by t.date_given desc';
$sql .= $this->buildLimit($resultsperpage, $start);
$stmt = $this->_db->prepare($sql);

0 comments on commit d5845bf

Please sign in to comment.