changes in define DEFAULT_PATH
added sorted as optional in _toArray function
fixes href value for base tag