Fix a notice of undefined property

Notice: Undefined property: Structure::$sort on line 289
Merge pull request #201 from dtrebbien/patch-1

Fix a notice of undefined property