indexes are being extracted and sorted