fixing order for media objects in admin and in API. fixes #20