Server error when trying to Data > Sort > Custom Sort

Server error when trying to Data > Sort > Custom Sort

Been using Data > Sort > Custom Sort for a while, now it has suddenly stopped working. When selecting the same data range and trying to execute, I get "Sorry! There was a problem saving your last edit. Please try again."