# tTop

Sorts data and outputs several rows from the first one of this data.

tTop sorts input records based on their schema columns and sends to its following component a given number of first rows of the sorted records.

### In this section

* [tTop properties for Apache Spark Batch](https://help.qlik.com/talend/en-US/components/8.0/processing/ttop-properties-for-apache-spark-batch)
* [tTop properties for Apache Spark Streaming (deprecated)](https://help.qlik.com/talend/en-US/components/8.0/processing/ttop-properties-for-apache-spark-streaming)

**Related concepts**

* [Performing download analysis using a Spark Batch Job](https://help.qlik.com/talend/en-US/components/8.0/processing/tcacheout-textractdelimitedfields-ts3configuration-performing-download-analysis-using-spark-batch-job-spark-batch-component-in-this)