kaZep
kaZep

Reputation: 21

Sort by number size in Eclipse Android

Recently i had to import my image item list, in windows it's ordered correctly by the number size:

Example: 1-0, 2-0, 3-0, 4-0, 5-0, 6-0, 7-0, 8-0, 9-0, 10-0, 11-0 ... etc

When i put these files into my assets they went crazy alike:

1-0, 10-0, 2-0, 2-1, 21-0, 22-0, 23-0, 3-0, 30-0, etc.

Image here link here: http://i.gyazo.com/a429e959b51958645ccb58ce44093426.png

I'm extremely sorry if this problem has been already posted but i couldn't find it anywhere.

Upvotes: 0

Views: 66

Answers (1)

Sergey Lihoman
Sergey Lihoman

Reputation: 98

They sorted as strings, not as numbers.

Upvotes: 1

Related Questions