Code:
$SQLString = "SELECT DISTINCT NodeNumber, NodeLocation
FROM graphnode
ORDER BY NodeNumber ASC"
Output:
1000
1001
1002
101
1010
One of my friend is facing this problem and I don’t know the complete project details. Any ideas what can be happening here.
your column type is not set to Number Format like Int, it is set to Varchar or some other String Format, you can cast it further and you don’t need to give ASC as default order is ASC only not DESC.