The ordering is done in the same sequence as they are specified in the query, and for each property a direction value can be specified. For each property passed, if the resource does not have such property or if the direction value is different from "asc" or "desc" (case insensitive), the property is ignored.
Author: Kévin Dunglas (dunglas@gmail.com)
Author: Théo FIDRY (theo.fidry@gmail.com)
Inheritance: extends AbstractFilter
 public function testGetDescriptionDefaultFields()
 {
     $filter = new OrderFilter($this->managerRegistry, new RequestStack(), 'order');
     $this->assertEquals(['order[id]' => ['property' => 'id', 'type' => 'string', 'required' => false], 'order[name]' => ['property' => 'name', 'type' => 'string', 'required' => false], 'order[alias]' => ['property' => 'alias', 'type' => 'string', 'required' => false], 'order[description]' => ['property' => 'description', 'type' => 'string', 'required' => false], 'order[dummy]' => ['property' => 'dummy', 'type' => 'string', 'required' => false], 'order[dummyDate]' => ['property' => 'dummyDate', 'type' => 'string', 'required' => false], 'order[dummyFloat]' => ['property' => 'dummyFloat', 'type' => 'string', 'required' => false], 'order[dummyPrice]' => ['property' => 'dummyPrice', 'type' => 'string', 'required' => false], 'order[jsonData]' => ['property' => 'jsonData', 'type' => 'string', 'required' => false], 'order[nameConverted]' => ['property' => 'nameConverted', 'type' => 'string', 'required' => false], 'order[dummyBoolean]' => ['property' => 'dummyBoolean', 'type' => 'string', 'required' => false]], $filter->getDescription($this->resourceClass));
 }