diff --git a/src/views/Exemplarisation/ExempTable.vue b/src/views/Exemplarisation/ExempTable.vue index 85ccb04..97f539e 100644 --- a/src/views/Exemplarisation/ExempTable.vue +++ b/src/views/Exemplarisation/ExempTable.vue @@ -155,8 +155,8 @@ const headingsDemandes = [ sort:(d1,d2) => { const date1 = moment(d1, "DD/MM/yyyy HH:mm").valueOf(); const date2 = moment(d2, "DD/MM/yyyy HH:mm").valueOf(); - if (date1 > date2) return -1; - if (date1 < date2) return 1; + if (date1 > date2) return 1; + if (date1 < date2) return -1; return 0; } }, @@ -167,8 +167,8 @@ const headingsDemandes = [ sort:(d1,d2) => { const date1 = moment(d1, "DD/MM/yyyy HH:mm").valueOf(); const date2 = moment(d2, "DD/MM/yyyy HH:mm").valueOf(); - if (date1 > date2) return -1; - if (date1 < date2) return 1; + if (date1 > date2) return 1; + if (date1 < date2) return -1; return 0; } }, diff --git a/src/views/Modification/ModifTable.vue b/src/views/Modification/ModifTable.vue index 9dbe8d7..e0bc376 100644 --- a/src/views/Modification/ModifTable.vue +++ b/src/views/Modification/ModifTable.vue @@ -156,8 +156,8 @@ const headingsDemandes = ref([ .valueOf(); const date2 = moment(d2, 'DD/MM/yyyy HH:mm') .valueOf(); - if (date1 > date2) return -1; - if (date1 < date2) return 1; + if (date1 > date2) return 1; + if (date1 < date2) return -1; return 0; } }, @@ -170,8 +170,8 @@ const headingsDemandes = ref([ .valueOf(); const date2 = moment(d2, 'DD/MM/yyyy HH:mm') .valueOf(); - if (date1 > date2) return -1; - if (date1 < date2) return 1; + if (date1 > date2) return 1; + if (date1 < date2) return -1; return 0; } }, diff --git a/src/views/Recouvrement/RecouvTable.vue b/src/views/Recouvrement/RecouvTable.vue index 4831ddb..b25e97c 100644 --- a/src/views/Recouvrement/RecouvTable.vue +++ b/src/views/Recouvrement/RecouvTable.vue @@ -148,8 +148,8 @@ const headingsDemandes = ref([ sort:(d1,d2) => { const date1 = moment(d1, "DD/MM/yyyy HH:mm").valueOf(); const date2 = moment(d2, "DD/MM/yyyy HH:mm").valueOf(); - if (date1 > date2) return -1; - if (date1 < date2) return 1; + if (date1 > date2) return 1; + if (date1 < date2) return -1; return 0; } }, @@ -160,8 +160,8 @@ const headingsDemandes = ref([ sort:(d1,d2) => { const date1 = moment(d1, "DD/MM/yyyy HH:mm").valueOf(); const date2 = moment(d2, "DD/MM/yyyy HH:mm").valueOf(); - if (date1 > date2) return -1; - if (date1 < date2) return 1; + if (date1 > date2) return 1; + if (date1 < date2) return -1; return 0; } }, diff --git a/src/views/Suppression/SuppTable.vue b/src/views/Suppression/SuppTable.vue index e6440ab..bf08fa6 100644 --- a/src/views/Suppression/SuppTable.vue +++ b/src/views/Suppression/SuppTable.vue @@ -141,8 +141,8 @@ const headingsDemandes = ref([ .valueOf(); const date2 = moment(d2, 'DD/MM/yyyy HH:mm') .valueOf(); - if (date1 > date2) return -1; - if (date1 < date2) return 1; + if (date1 > date2) return 1; + if (date1 < date2) return -1; return 0; } }, @@ -155,8 +155,8 @@ const headingsDemandes = ref([ .valueOf(); const date2 = moment(d2, 'DD/MM/yyyy HH:mm') .valueOf(); - if (date1 > date2) return -1; - if (date1 < date2) return 1; + if (date1 > date2) return 1; + if (date1 < date2) return -1; return 0; } },