forum

Home / DeveloperSection / Forums / How to sort alphanumeric word in array in ios?

How to sort alphanumeric word in array in ios?

Anonymous User217611-Nov-2014

I have a array with 10 elements called products which is sorted by default, this is the current log now.

for (int i=0;i<products.count; i++)

{

     NSLog(@"%@",products[i]);

}

The Output:

Product1

Product10

Product2

Product3

Product4

Product5

Product6

Product7

Product8

Product9

I need to sort it in following order:

Product1

Product2

Product3

Product4

Product5

Product6

Product7

Product8

Product9

Product10


Updated on 12-Nov-2014
I am a content writter !

Can you answer this question?


Answer

1 Answers

Liked By