Add order to a getList function
Fix bug with a field name
Fix bug with a field name #2
Add unit tests for addOrder