refresh following sort needs fixing