implement grid sortDirection option