Added tests that verify that ordering works from views.