entityOS includes a query language that you can use to retrieve the stored data using the entityos.cloud.retrieve() function.
entityos.cloud.retrieve(
{
object: 'contact_person',
fields: [{name: 'firstname'}, {name: 'surname'}],
filters:
[
{name: 'surname', comparison: 'EQUAL_TO', value1: 'Smith'},
{name: 'firstname', comparison: 'EQUAL_TO', value1: 'Jane'}
],
sorts: [{name: 'firstname', direction: 'asc'}],
callback: myApp.showContacts
})
Direction can be asc or desc
You can control data setting startrow and rows.