Update core/model/modx/processors/resource/sort.class.php