sort data -> client side