我有这个查询MATCH (r:Class {Name: 'A'})-[perm]->(res:source) RETURN res.Name AS resource, collect(type(perm)) AS permission ORDER BY resource
它返回如下响应
"AB sources",
[
"D",
"C",
"A",
"B"
]
我想要的是这个D C A B应该像A B C D那样排序
我试着把订单放在烫发旁边,但那会出错。我怎么能做到呢?
1条答案
按热度按时间z2acfund1#
您必须使用APOC库对集合进行排序: