Sorting a list now corrects the rank of documents
Added test for sorting/reranking