Taking into considetarion the value for $fields in the controller is:
$fields = ['id', 'name', 'email', 'age', 'created_at'];
- limit = 20
- sort = name
- order = desc
- limit = 15 // Default value.
- sort = age
- order = asc
- limit = 15
- sort = created_at // (country is not in the fields array so it will go back to the default)
- order = desc // default order is desc.