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