Răsfoiți Sursa

Change order of projects in dropdown

Alan Lam 2 ani în urmă
părinte
comite
f21b0e714b
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 1 1
      controllers/reports.php

+ 1 - 1
controllers/reports.php

@@ -62,7 +62,7 @@ if(!is_array($location_ids)) {
 
 
 $all_projects = Project::query([
 $all_projects = Project::query([
 	"customer_id" => $customer->id
 	"customer_id" => $customer->id
-]);
+], ["sort" => "dts_start", "order" => "desc"]);
 
 
 if(Core::$user->isCustomer()) {
 if(Core::$user->isCustomer()) {
 	// Filter to only projects that have past the deadline
 	// Filter to only projects that have past the deadline