sorted the restaurants in the server-side.
fixed sorting in client side by introducing a ordered hash that will receive the ordered restaurants from the server.