IO-925 IO-927 IO-930 Production List Updates

This commit is contained in:
Patrick Fic
2021-04-26 11:50:49 -07:00
parent f33715b83c
commit cffcd4b19b
7 changed files with 106 additions and 37 deletions

View File

@@ -1,3 +1,4 @@
import moment from "moment";
export function alphaSort(a, b) {
let A;
let B;
@@ -12,3 +13,13 @@ export function alphaSort(a, b) {
// if (A > B) return 1;
// return 0; //default return value (no sorting)
}
export function dateSort(a, b) {
return moment(a).isBefore(moment(b));
// if (A < B)
// //sort string ascending
// return -1;
// if (A > B) return 1;
// return 0; //default return value (no sorting)
}