Add Sorting in Main Window