Sorting sudah tebus defaults to datetime desc

This commit is contained in:
Afiq Hamzah
2023-12-07 13:37:36 +08:00
parent 3cc3996faa
commit 82f453b29e
+2
View File
@@ -2297,6 +2297,8 @@
method:"GET",
url: api_url + "/api/customers/"+noic+"/gadai/sudah_tebus/"+kodcaw,
success: function(data){
sorted_data = [...data];
sorted_data.sort((a, b) => new Date(b.date) - new Date(a.date));
gadaiTable(data,"sudah_tebus");
}
});