added sharepref to sortfilter dialog fragment to save state
fixed some syntax bugs with sharedpref in sortfilter dialog fragment