def find_by_code(collection, code, sortdate): return mongo_commons.find(client, database, collection, { "$query": { "code" : code }, "$orderby": [{ "coverageTime.from" : sortdate }]});
def find_query(collection, query): return mongo_commons.find(client, database, collection, query)
def find_by_layername(collection, layername): return mongo_commons.find(client, database, collection, { "$query": { "layername" : layername }, "$orderby": [{ "layertitle" : 1 }]});
def find(collection): return mongo_commons.find(client, database, collection, { "$query": {}, "$orderby": [{ "layertitle" : 1 }, {"date" : 1}]})