- Timestamp:
- 03/29/10 13:36:34 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/server/www/app/controllers/jobs_controller.php
r330 r337 505 505 ORDER BY `Request`.`own_factory` DESC, 506 506 `Request`.`priority` ASC, 507 `Job`.`locked` ASC, 507 508 `Request`.`created` ASC 508 509 LIMIT 0,1"); … … 565 566 } 566 567 567 // If the priorities are also equal, look at the creation date568 return ($a[' Request']['created'] < $b['Request']['created']) ? -1 : 1;568 // If the priorities are also equal, look at the locked time 569 return ($a['Job']['locked'] < $b['Job']['locked']) ? -1 : 1; 569 570 } 570 571
Note: See TracChangeset
for help on using the changeset viewer.