我在cosmos db中编写了一个选择查询,该查询工作正常。但是在该查询中,当我尝试按别名列上的列添加顺序时,它不起作用。这里distance是别名列。正确的方法是什么?
SELECT c.id,c.type,c.name,c.latitude,c.longitude,c.location, ST_Distance(c.location, { 'type': 'Point', 'coordinates':[-112.215641, 33.181647]}) as distance FROM c WHERE ST_Distance(c.location, { 'type': 'Point', 'coordinates':[-112.215641, 33.181647]}) < 321868.8 ORDER BY c.distance ASC