skip to Main Content

Javascript – I want sort this array with this method

var img = [ "IMG_COM_20220516_1150_41_1375.webp", "IMG_COM_20220516_1150_41_13810.webp", "IMG_COM_20220516_1150_41_1386.webp", "IMG_COM_20220516_1150_41_1389.webp", "IMG_COM_20220516_1150_41_13911.webp", "IMG_COM_20220516_1150_41_13912.webp", ]; I want to sort this array by bigger number when I try .sort() didn't change I want the result be like this [ "IMG_COM_20220516_1150_41_1375.webp", "IMG_COM_20220516_1150_41_1386.webp", "IMG_COM_20220516_1150_41_1389.webp", "IMG_COM_20220516_1150_41_13810.webp", "IMG_COM_20220516_1150_41_13911.webp", "IMG_COM_20220516_1150_41_13912.webp",…

VIEW QUESTION

Javascript – How to convert Array of hierarchy data into right JSON-Format for D3-Tree-Region

i having problems converting an array of hierarchy data into the right Object format. I trying to convert this: [ {"PARENT_ID": 0,"CHILD_ID": 1,"NAME": "Quality","LEVEL_A": 0}, {"PARENT_ID": 1,"CHILD_ID": 2,"NAME": "Machine","LEVEL_A": 1}, {"PARENT_ID": 1,"CHILD_ID": 3,"NAME": "Method","LEVEL_A": 1}, {"PARENT_ID": 1,"CHILD_ID": 4,"NAME": "Material","LEVEL_A": 1},…

VIEW QUESTION
Back To Top
Search