IO-925 IO-927 IO-930 Production List Updates
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user