Yes, you can use an index instead of sorting the data set.