appease the knip

This commit is contained in:
Mary Hipp
2024-06-24 15:07:22 -04:00
committed by psychedelicious
parent 84ffd36071
commit 715dd983b0
4 changed files with 2 additions and 33 deletions

View File

@ -1,16 +0,0 @@
/**
* Comparator function for sorting dates in ascending order
*/
export const dateComparator = (a: string, b: string) => {
const dateA = new Date(a);
const dateB = new Date(b);
// sort in ascending order
if (dateA > dateB) {
return 1;
}
if (dateA < dateB) {
return -1;
}
return 0;
};