When Grouping on an Integer value, the groups are not ordering correctly. i.e. if you group on values {864, 1455, 1494}, the actual order comes out as {1455, 1494, 864}. Ordering on the same data, but converted to a string and padded to the left with zeros resolves this issue.
Set DataType="System.Int32" for your column and it will be sorted like integer. If the type is unknown it will be sorted as string.