added sorting  by pH