adds sort by