Sort partition id in sensei