Skip to content

Commit

Permalink
sort by date created instead of name
Browse files Browse the repository at this point in the history
  • Loading branch information
zhaoz authored and jeresig committed Oct 6, 2009
1 parent 16b1435 commit 3abfcfc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion content/tinder.php
Expand Up @@ -68,7 +68,7 @@ function get_status2($num, $fail, $error, $total){
$job_search = preg_replace("/[^a-zA-Z ]/", "", $_REQUEST['job']);
$job_search .= "%";

$search_result = mysql_queryf("SELECT jobs.name, jobs.status, jobs.id FROM jobs, users WHERE jobs.name LIKE %s AND users.name=%s AND jobs.user_id=users.id ORDER BY name DESC LIMIT 15;", $job_search, $search_user);
$search_result = mysql_queryf("SELECT jobs.name, jobs.status, jobs.id FROM jobs, users WHERE jobs.name LIKE %s AND users.name=%s AND jobs.user_id=users.id ORDER BY jobs.created DESC LIMIT 15;", $job_search, $search_user);

if ( mysql_num_rows($search_result) > 0 ) {

Expand Down

0 comments on commit 3abfcfc

Please sign in to comment.