dialog box to pick the sorting method added.