Lone Shepherd
public text v1 · immutableenum blue/red/green
class Colors
class Shapes
members height[10], width[10], opacity[10]
Colors instantizes an array of Shapes.
I have a variable 'blah' of class Colors which will be populated:
blah[i].height[j] = 10;
blah[i].width[j] = 5;
// etc.
If i is 12 and j is 10, then I have say, 120 values of height,width,opacity total.
I want to sort all of those values by opacity, from max to min, and save the heights/widths that correspond to the top 10 highest opacities.