Amend model and api tests to check for ordering and model to produce a sorted list