Sorting on price attribute did not work (#945)