Merged in afiqhamzah/fix/sorting-sudah-tebus-defaults-to-datetime-desc (pull request #23)
Sorting sudah tebus defaults to datetime desc
This commit is contained in:
@@ -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");
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user