{"version":"1.0","type":"rich","title":"D3 vanila","description":"This example demonstrates sorting an array of objects by their `key` property using plain JavaScript within an HTML page styled with CSS. The code defines three entries with keys A, C, and B, then applies the `Array.sort()` method with a comparison function that returns -1 or 1 based on ascending order. It relies on the `d3` library, specifically importing the `ascending` function from version 6.6.1, though the visible sort logic implements the comparison manually. The result is logged to the browser console, showing the reordered entries B, C, A.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/4a7c0361db044c93871770f21ecf7482?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}