15 for(i = 0; i < NrItems - 1; i++)
17 for(j = i + 1; j < NrItems; j++)
20 while(*p1 && (*p1 <
' '))
24 while(*p2 && (*p2 <
' '))
27 switch((Ascending ? 1 : 0) + (CaseSensitive ? 2 : 0))
29 case 0: Swap = (strcasecmp(p1, p2) < 0);
break;
30 case 1: Swap = (strcasecmp(p1, p2) > 0);
break;
31 case 2: Swap = (strcmp(p1, p2) < 0);
break;
32 case 3: Swap = (strcmp(p1, p2) > 0);
break;
void OSDMenuItemSortValueColumn(bool Ascending, bool CaseSensitive)
char Value[ITEMVALUESIZE]