It really does not matter in terms of effect on the equipment or the battery.
If one side of the battery is grounded, you will not be risking an accidental short circuit when you need to use tools to make the disconnect if you remove the grounded terminal first.
That sort of consideration is more important with high amp batteries and wrench tightened fittings as in a car than in removing push-on insulated tab terminals.
Sent from my XT1080 using Tapatalk