Fixed sort in chunk