The order in which a set of objects, such as the properties of type, is returned is essentially random. It is generally based on the order in which items were created, but this is not reliable behavior. By default, the web client sorts objects by index and timestamp. Objects with a null index have not been explicitly ordered.
Use the following query to return all topics associated with a property, sorted by the timestamp of the link created between the topic and property, and including the GUID of the topics.
[
{
"/music/artist/origin" : [
{
"guid" : null,
"index" : null,
"link" : {
"timestamp" : null
},
"name" : null,
"sort" : "index"
}
]
}
]
More information on the sort and index directives can be found in the appropriate sections of the MQL Reference Guide.
Search Help Center
Discussions
There are no conversations on this topic. Would you like to start one?
Start the Discussion »- Building Bases
- Creating Schemas
-
Developing Applications
- An Introduction to Freebase Application Development
- Playing in the Sandbox
- Freebase Programming Libraries and Tools
- Data Dump FAQ
- Using the Query Editor
- The Complete Metaweb Query Language (MQL) Reference Guide
- MQL Cheatsheet
-
The MQL Cookbook
- Get data as of a specific time
- Read properties of a type
- values vs name/id
- Incoming links
- Any topics with a specific date
- Wikipedia article text
- Retrieve the Wikipedia URL for an object with a GUID
- Find distinct co-types
- Creating relationships with the connect directive
- Mark for deletion
- Sort by index and timestamp
- Traversing Through Non-Reversed Properties
- Combine queries
- Perform transitive queries
- Freebase API Reference
- Application Developer Tips
- The Acre Hosted Development Environment
- Introduction to the Metaweb Javascript Template Language (MJT)
- Freebase Community