adding sorting and update fix