Workaround for calls on generic sorts.