Sort MODX containers after saving resources for MODX Revolution