graph district sort