diff --git a/src/backend/public/GET-educations.php b/src/backend/public/GET-educations.php index 7ebe4eb98c259be5ed7da28f2cfc43ebf2e0da2f..d13630479749b9d67c85a0f45bc3e8ff863e8b2e 100644 --- a/src/backend/public/GET-educations.php +++ b/src/backend/public/GET-educations.php @@ -6,5 +6,5 @@ use App\DB; header('Access-Control-Allow-Origin: *'); header('Content-Type: application/json; charset=utf-8'); -$data = DB::run("SELECT * FROM educations ORDER BY endDate DESC"); +$data = DB::run("SELECT * FROM educations ORDER BY startDate DESC"); echo json_encode($data); diff --git a/src/backend/public/GET-experiences.php b/src/backend/public/GET-experiences.php index e8fcba30b102d37b1dd4770470c5b68eaf107a4e..74f07102d8aa555c51a0252b0a348097d02e37c9 100644 --- a/src/backend/public/GET-experiences.php +++ b/src/backend/public/GET-experiences.php @@ -6,7 +6,7 @@ use App\DB; header('Access-Control-Allow-Origin: *'); header('Content-Type: application/json; charset=utf-8'); -$data = DB::run("SELECT * FROM experiences ORDER BY endDate DESC"); +$data = DB::run("SELECT * FROM experiences ORDER BY startDate DESC"); for ($i = 0; $i < count($data); $i++) { $data[$i]['tasks'] = DB::run('SELECT * FROM tasks WHERE experience_id = ?', $data[$i]['id']);