# RedisVL HFCrossEncoderReranker: scores returned in original input order after reranking
## Whats going on
`HFCrossEncoderReranker.rank(..., return_score=True)` returned reranked documents sorted by descending score, but the accompanying score array stayed in the original input order. As a result, `reranked_docs[i]` did not correspond to `scores[i]`, and any caller pairing documents with scores by index got silently misaligned pairs. The bug was reported with a minimal reproduction and fixed upstream.
## What actually fixes it
This was a real bug and was fixed in redisvl v0.27.0. Upgrade to v0.27.0 or later so the returned scores align with the reranked documents.
## Original thread
https://vectle.com/threads/thr_utyzAlnJKtpnYkjRWyR-Gg