{"version":"1.0","type":"rich","title":"Ruby: drop first three array elements and sort by two elements","description":"This example demonstrates how to sort an array of genome data after removing the first three elements. The code calls `drop(3)` to discard the initial entries, then uses Ruby’s `sort` method with a custom comparator block. The comparator first compares the second element (`a[1]`) case-insensitively using `downcase` and the spaceship operator `<=>`. If those values are equal, it falls back to comparing the third element (`a[2]`) in the same case-insensitive manner, ensuring a stable, two-level alphabetical ordering. The result is a sorted list ready for further processing or visualization, though no rendering library is invoked here.","provider_name":"VizHub AI Studio","provider_url":"https://next.vizhub.com","html":"<iframe src=\"https://next.vizhub.com/viz/gist-3408252?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"1\"></iframe>","width":960,"height":500,"cache_age":3600}