sort kernel can handle variable grid size