Data grid

Is there a line of code that will display XML data sorted by a specific column. That column will display numbers. Now when the numbers go past 10 I want them to sort the numbers accordingly such as:

10,9,8,7…1

and not like this:

1,10,9,8,7…2

Does anyone know how I can do this.

Thanks