I want to sort the array [[x₁, y₁], [x₂, y₂], [x₃, y₃],...] by the first term. I know that it is doable with bubble sorting, but is there more concise and efficient way to s