fixed sorting url generation

now done client side