Fixing resouces sort for anonymous and simple click for opening resources.
fixing php style.
Merge pull request #37 from claroline/fixing-anonymous-for-resourcemanager

Fixing resouces sort for anonymous and simple click for opening resource...