def sort_schemas(cls, schemas_list):
        return sorted(schemas_list,
                      key=lambda x: (
                          x.priority,
                          x.compiled.key_schema.priority if x.compiled_type == const.COMPILED_TYPE.MARKER else 0
                      ), reverse=True)