A court in Mexico has ordered the re-arrest of seven soldiers charged with abuse of authority for a 2014 army massacre.

The soldiers killed 22 suspects at a grain warehouse in the town of Tlatlaya. While some died of those in an initial shootout with the army patrol, a human rights investigation showed that about a dozen were executed after they surrendered.

Previously, the soldiers had been acquitted or charges dismissed. But relatives of two of the victims appealed the dismissal of charges and won last week's ruling, which was only made public Thursday.

The court also ordered three of the soldiers to stand trial on charges of altering evidence at the scene.

Investigations showed witnesses had been threatened and tortured, bodies moved and weapons planted at the scene.