update the Sort extension