Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- "_id": "P17-223",
- "property": "P17",
- "itemid": 223,
- "labels": [
- {
- "language": "en",
- "value": "Greenland"
- },
- {
- "language": "es",
- "value": "Groenlandia"
- },
- {
- "language": "de",
- "value": "Grönland"
- }
- ]
- DBCursor cursor = getCollection().find(query);
- BasicDBObject orderBy = new BasicDBObject("labels[0].value", 1);
- cursor.sort(orderBy);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement