瀏覽代碼

Contacts: Sort list initially by Organization, then by First, Last.

Nate Jones 10 年之前
父節點
當前提交
ebc361ff5f
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      contacts.php

+ 1 - 1
contacts.php

@@ -176,7 +176,7 @@ else {
 		$sql .= "order by ".$order_by." ".$order." ";
 		$sql .= "order by ".$order_by." ".$order." ";
 	}
 	}
 	else {
 	else {
-		$sql .= "order by contact_organization asc, contact_name_given asc, contact_name_family asc ";
+		$sql .= "order by contact_organization desc, contact_name_given asc, contact_name_family asc ";
 	}
 	}
 	$sql .= "limit ".$rows_per_page." offset ".$offset." ";
 	$sql .= "limit ".$rows_per_page." offset ".$offset." ";
 	$prep_statement = $db->prepare(check_sql($sql));
 	$prep_statement = $db->prepare(check_sql($sql));