Fixing bug with refreshing sorts when there is no sort order