added sort button to sidebar