fix logical issue while retrieving log via ajax
remove log sort in admin section

doesn't work anymore, because now the datetime is saved as string (ref #2975)
fix syntax layout
Merge pull request #3094 from owncloud/log-ajax

fix logical issue while retrieving log via ajax