Added sorting by quality values