A Manhattan judge has ordered the unsealing of a limited amount of summons information in an ongoing class-action lawsuit that alleges the NYPD engaged in a quota policy.

The order will unseal just the narrative statements written by cops on the more than 850,000 dismissed summonses – and not identifying information about the person it was issued to or the cop involved, which will be redacted, according to the ruling by Manhattan federal court Judge Robert Sweet.

The city wants a statistical expert to analyze narratives to prove “that the number of summonses that lacked probable cause is not as high as it appears,” court papers say.

Sweet previously shot down the city’s similar — but broader — motion to unseal the information to get details about the person and cop involved.

Lawyers for both sides cheered Sweet’s latest order.

“We are pleased that Judge Sweet has narrowly tailored discovery to protect the privacy of New Yorkers whose constitutional rights we believe the NYPD violated,” said Elinor Sutton, who represents the plaintiffs. “At the same time, this evidence will assist plaintiffs in proving the NYPD’s liability.”

A spokesman said the Law Department was also pleased.

“Having the officers’ versions of events will help the city defend against allegations that summonses were served without probable cause,” he said.

The lawsuit, which has been dragging on for six years, has had a few snafus along the way.