I searched something similar accros the stackoverflow, but did not find nothing so specific. Could it be maybe that I ran to it but did not clearly understood that it is a similar case.
So I have an array of arrays which have two different type of values. For example, lets say that it looks like this:
var stuff = [
["C", 13.63, 15.12, 17.25, 18.87, 20.13],
["C++", 17.35, 19.13, 21.61, 23.53, 25.1],
["Django", 0.71, 0.77, 0.8, 0.87, 0.97],
["Git", 4.07, 4.31, 4.46, 4.79, 5.45],
["Java", 25.44, 26.97, 29.37, 31.99, 34.61]
]
So my first question is how to sort arrays by, for example, second value?
In that case Java
including array would be first and Django
would be last.
Second question is: Is it possible to say "if array has value Git
, put it as the first of arrays in stuff array?