strtolower $sortDir property
override default $parents

calling getResources with default $parents property returns unpredictable results
Fixes for getSelections

* origin/pr/98:
  override default $parents
  strtolower $sortDir property