Added sorting to grid list of medicine