php mysql ORDER BY不工作..试着看着别人,他们是';t有同样的问题


php mysql ORDER BY not working ... tried looking at others, they aren't having the same issue

请帮忙。。。我对php-mysql非常了解,但由于某些原因,我无法理解。

我有这个查询:

$get_points = "SELECT user_id, accum_points FROM total_points ORDER BY accum_points DESC"; 
$run_points = mysqli_query($con, $get_points); 
while($row_points = mysqli_fetch_array($run_points)) {
other stuff in here 
}

这是目前数据库中的内容

points_id  |  user_id  | accum_points
_____________________________________
   31           12           211.2
   32           13            7.4
   33            1           10.4

但它以7.4、211.2、10.4的顺序吐出。我不明白这是怎么回事。。。我已经看了很多关于ORDER BY不起作用的其他问题。。。有人能帮忙吗?

谢谢!

我犯了一个错误,将列设为varchar。。。所以我太愚蠢了。。。很抱歉这些家伙