added sorting to ingredients