internal static void SortBy4(Double[] l1, Int32[] l2)
{
var a = new VectorOrdering[4];
for (var c = 0; c < 4; c += 1)
{
a[c].Value = l1[c];
a[c].Axis = l2[c];
}
Array.Sort(a, VectorOrderingCompare);
for (var c = 0; c < 4; c += 1)
{
l2[c] = a[c].Axis;
}
}