add sort in popup