Refined diagnosis description functionality. Added sorting.