add the sort to the index