【发布时间】:2015-09-14 14:40:42
【问题描述】:
在 App Engine NDB 中,我正在查询具有重复属性的实体。我想按表示该属性的数组的长度对结果进行排序。
我希望我能做什么:
Entity.query(...).order(len(Entity.repeatedProp))
【问题讨论】:
-
你必须在 python 代码中使用
sorted
标签: python google-app-engine google-cloud-datastore app-engine-ndb