Issue #567: Similar patients aren't sorted by the similarity score
Fixed.