NSMutable *a=[NSMutableArray arrayWithObjects:@"5",@"7",@"99",@"479",@"712",nil];
for (int i=0, i<a.count,i++){
for (int j=0, j<a.count-1,j++){
if ( [a[j]intValue]>[a[j+1]intValue]){
[a exchangeObjectAtIndex:j withObjectAtIndex:j+1];
}
}
NSLog(@"a=%@",a[i]);
}