Reversed KNN score ordering

Added small assertion