Skip to content
Snippets Groups Projects
Commit 3ae58f8d authored by Nicolas Borboën's avatar Nicolas Borboën
Browse files

[fix] job ordering

parent a13368d2
No related branches found
No related tags found
No related merge requests found
......@@ -10,7 +10,7 @@ class DBController {
public function getOpenPositions()
{
// Get position where number of spots > 0
$sqlreq = "SELECT * FROM position JOIN location ON location_id = fk_location JOIN job ON job_id = fk_job WHERE position_spot_number > 0";
$sqlreq = "SELECT * FROM position JOIN location ON location_id = fk_location JOIN job ON job_id = fk_job WHERE position_spot_number > 0 ORDER by job_full_value ASC";
$query = $this->pdo->prepare($sqlreq);
$query->execute();
return $query->fetchAll();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment