for (i = 0; i < len - 1; ++i) { for (j = 0; j < len - 1 - i; ++j) { if (pArr[j].score < pArr[j + 1].score) { t = pArr[j]; pArr[j] = pArr[j + 1]; pArr[j + 1] = t; } } }