major fix for sort UI control.