Fix a notice of undefined property

Notice: Undefined property: Structure::$sort on line 289