trouble sorting bom by part number

When I sort by part number the order is incorrect. The order shows up 19,2,20... 1000 before 2. I need help sorting this automaticly.

SolidworksBill Of Materials