progress on sort and get indexing