added ?sort=val and ?sort=-val