Very basic sorting


Sorry if this question is too basic, I’m just starting with Tamino and XML here.

I’m trying to get used to X-Query using Tamino Interactive Interface and all I need to know for now is how to return my records sorted by ‘Name’ using sortby function. Hope you can help.

Here’s my data.



two things here:

1) define a schema that has the attribute “Name” that is the child of “Company” to be defined with an ‘standard’ index, map-type ‘InfoField’ and Data-type ‘VARWCHAR’. This will enable this attribute to be searched on and sorted.

2) Use the query : 'Company sortby(@Name)'

Hope this helps.