Fix job ordering
This commit is contained in:
@ -11,7 +11,7 @@ const jobs = ref<Job[]>([]);
|
|||||||
|
|
||||||
async function fetchJobs() {
|
async function fetchJobs() {
|
||||||
let jobsRaw = await httpApi<Job[]>("/jobs");
|
let jobsRaw = await httpApi<Job[]>("/jobs");
|
||||||
jobs.value = jobsRaw.sort((a, b) => new Date(b.created_at).getTime() - new Date(a.created_at).getTime());
|
jobs.value = jobsRaw.sort((a, b) => new Date(a.created_at).getTime() - new Date(b.created_at).getTime());
|
||||||
}
|
}
|
||||||
|
|
||||||
onMounted(fetchJobs);
|
onMounted(fetchJobs);
|
||||||
|
Reference in New Issue
Block a user