This PR adds the same synchronization utils and hooks from view to record sorts, as we did with view and record filters. The goal is to apply what's in the view sorts only when needed. Also added tests for those utils and hooks. We also add useRemoveRecordSorts.