[LMP] Save custom criteria, fixes #1702.
[LMP] Don't suggest duplicate sorting criteria, fixes #1703.
[LMP] "Cancel" should not add sorting criteria.