void sort_str(char* str)
{
char cTmp;
int nlen = strlen(str);
for (int i = 0; i < nlen; i++)
{
//not a number
if (str[i] > 57 && str[i] < 48 && str[i] != '-')
return;
if (str[i] == '-')
{
cTmp = str[i+1];
int j = i - 1;
while(j >= 0)
{
if(str[j] == '-')break;
str[j+2] = str[j];
j -= 2;
}
str[j+2] = '-';
str[j+3] = cTmp;
}
}
}