Update for sort