Ignore:
Timestamp:
06/10/24 22:34:32 (5 months ago)
Author:
223021 <daniel.ilievski.2@…>
Branches:
main
Children:
befb988
Parents:
28b3398
Message:

Added no access page for new recruiters and admin panel for granting access

File:
1 edited

Legend:

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

    r28b3398 rb248810  
    11
    22
    3 export const sortElementsByDateCreated = (array) => {
     3export const sortElementsBy = (array, column) => {
    44    return array.slice().sort((a, b) => {
    5         return new Date(b.postedOn).getTime() - new Date(a.postedOn).getTime()
     5        return new Date(b[column]).getTime() - new Date(a[column]).getTime()
    66    });
    77}
     
    99export const sortElementsBySubmissionDate = (array) => {
    1010    return array.slice().sort((a, b) => {
    11         return new Date(b.postedOn).getTime() - new Date(a.postedOn).getTime()
     11        return new Date(b).getTime() - new Date(a.postedOn).getTime()
    1212    });
    1313}
Note: See TracChangeset for help on using the changeset viewer.