fixed CustomDataGrid sort crash

Change-Id: I0db86208c002c93ff2bfe4622b6396e9e3546e92