complete sort stories by priority number