Made _getPickData more generic by supporting ordening
As such, renamed it to _getData.
Also use a more robust way to represent the filter in case it
contains entities.
Patch by: Sverre Rabbelier
// Display a logging console on top of this page.(new AH.LoggingConsole()).initConsole();</script>