Ignore:
Timestamp:
06/09/24 14:24:03 (5 months ago)
Author:
223021 <daniel.ilievski.2@…>
Branches:
main
Children:
b248810
Parents:
19398ad
Message:

Implemented job application functionality, added job advertisement filtering and replaced text areas with editors

File:
1 edited

Legend:

Unmodified
Added
Removed
  • jobvista-frontend/src/utils/utils.js

    r19398ad r28b3398  
    33export const sortElementsByDateCreated = (array) => {
    44    return array.slice().sort((a, b) => {
    5         return new Date(b.postedAt).getTime() - new Date(a.postedAt).getTime()
     5        return new Date(b.postedOn).getTime() - new Date(a.postedOn).getTime()
     6    });
     7}
     8
     9export const sortElementsBySubmissionDate = (array) => {
     10    return array.slice().sort((a, b) => {
     11        return new Date(b.postedOn).getTime() - new Date(a.postedOn).getTime()
    612    });
    713}
Note: See TracChangeset for help on using the changeset viewer.