Chris Maguire and Lynden Gooch both found the net in the dying embers of the game as the Black Cats claimed their first win in three.
But who caught the eye at Priestfield, and who still has work to do?
Scroll down and click through the pages as Phil Smith dishes out his merit marks from a dramatic afternoon in Kent:

9. Lynden Gooch
Took his goal well late on, and covered a huge amount of distance throughout the contest without having much space to show his best qualities. 6 Photo: Frank Reid

10. Aiden O'Brien
Battled well in what was a bruising physical contest, but missed his big moment when turning a lwo cross wide of the post after Gillingham had gone down to ten men. 5 Photo: FRANK REID 2020

11. Charlie Wyke
Won the penalty and that was due reward for a real, battling display. Some good touches and brought others into play well in testing conditions. 7 Photo: FRANK REID 2019

12. Danny Graham
Won some key headers, and went close to settling the contest with a good header at the near post late on. 6 Photo: Frank Reid

